Rerun C++ SDK
|
Component: How we interpret the coordinate system of an entity/space. More...
#include <rerun/components/view_coordinates.hpp>
Public Types | |
enum | ViewDir : uint8_t { Up = 1 , Down = 2 , Right = 3 , Left = 4 , Forward = 5 , Back = 6 } |
Public Member Functions | |
constexpr | ViewCoordinates (uint8_t axis0, uint8_t axis1, uint8_t axis2) |
Construct Vec3D from x/y/z values. | |
constexpr | ViewCoordinates (ViewDir axis0, ViewDir axis1, ViewDir axis2) |
Construct Vec3D from x/y/z values. | |
ViewCoordinates (std::array< uint8_t, 3 > coordinates_) | |
ViewCoordinates & | operator= (std::array< uint8_t, 3 > coordinates_) |
Public Attributes | |
std::array< uint8_t, 3 > | coordinates |
The directions of the [x, y, z] axes. | |
Component: How we interpret the coordinate system of an entity/space.
For instance: What is "up"? What does the Z axis mean? Is this right-handed or left-handed?
The three coordinates are always ordered as [x, y, z].
For example [Right, Down, Forward] means that the X axis points to the right, the Y axis points down, and the Z axis points forward.
The following constants are used to represent the different directions: