|
| Transform3D (const datatypes::TranslationAndMat3x3 &translation_and_mat3x3) |
| New 3D transform from translation/matrix datatype.
|
|
| Transform3D (const datatypes::Vec3D &translation, const datatypes::Vec3D(&columns)[3], bool from_parent=false) |
| Creates a new 3D transform from translation and matrix provided as 3 columns.
|
|
| Transform3D (const datatypes::Vec3D &translation, const datatypes::Mat3x3 &matrix, bool from_parent=false) |
| Creates a new 3D transform from translation/matrix.
|
|
| Transform3D (const datatypes::Vec3D &translation, bool from_parent=false) |
| From translation only.
|
|
| Transform3D (const datatypes::Mat3x3 &matrix, bool from_parent=false) |
| From 3x3 matrix only.
|
|
| Transform3D (const datatypes::Vec3D(&columns)[3], bool from_parent=false) |
| From 3x3 matrix provided as 3 columns only.
|
|
| Transform3D (const datatypes::TranslationRotationScale3D &translation_rotation_scale3d) |
| New 3D transform from translation/rotation/scale datatype.
|
|
| Transform3D (const datatypes::Vec3D &translation, const datatypes::Rotation3D &rotation, const datatypes::Scale3D &scale, bool from_parent=false) |
| Creates a new 3D transform from translation/rotation/scale.
|
|
| Transform3D (const datatypes::Vec3D &translation, const datatypes::Rotation3D &rotation, float uniform_scale, bool from_parent=false) |
| Creates a new 3D transform from translation/rotation/uniform-scale.
|
|
| Transform3D (const datatypes::Vec3D &translation, const datatypes::Rotation3D &rotation, bool from_parent=false) |
| Creates a new rigid transform (translation & rotation only).
|
|
| Transform3D (const datatypes::Vec3D &translation, const datatypes::Scale3D &scale, bool from_parent=false) |
| From translation & scale only.
|
|
| Transform3D (const datatypes::Vec3D &translation, float uniform_scale, bool from_parent=false) |
| From translation & uniform scale only.
|
|
| Transform3D (const datatypes::Rotation3D &rotation, const datatypes::Scale3D &scale, bool from_parent=false) |
| From rotation & scale.
|
|
| Transform3D (const datatypes::Rotation3D &rotation, float uniform_scale, bool from_parent=false) |
| From rotation & uniform scale.
|
|
| Transform3D (const datatypes::Rotation3D &rotation, bool from_parent=false) |
| From rotation only.
|
|
| Transform3D (const datatypes::Scale3D &scale, bool from_parent=false) |
| From scale only.
|
|
| Transform3D (Transform3D &&other)=default |
|
| Transform3D (rerun::components::Transform3D _transform) |
|
size_t | num_instances () const |
| Returns the number of primary instances of this archetype.
|
|
Archetype: A 3D transform.
Example
Variety of 3D transforms
![image](https://static.rerun.io/transform3d_simple/141368b07360ce3fcb1553079258ae3f42bdb9ac/full.png)
#include <rerun.hpp>
constexpr float TAU = 6.28318530717958647692528676655900577f;
int main() {
rec.spawn().exit_on_failure();
auto arrow =
rerun::Arrows3D::from_vectors({{0.0f, 1.0f, 0.0f}}).with_origins({{0.0f, 0.0f, 0.0f}});
rec.log("base", arrow);
rec.log("base/translated", arrow);
rec.log(
"base/rotated_scaled",
2.0f
)
);
rec.log("base/rotated_scaled", arrow);
}
A RecordingStream handles everything related to logging data into Rerun.
Definition recording_stream.hpp:57
Datatype: 3D rotation represented by a rotation around a given axis.
Definition rotation_axis_angle.hpp:21
Creates a new 3D transform from translation/rotation/uniform-scale.
- Parameters
-
translation | 3D translation vector, applied last. |
rotation | 3D rotation, applied second. |
uniform_scale | Uniform scale factor that is applied to all axis equally. |
from_parent | If true, this transform is from the parent space to the space where the transform was logged. |
If false (default), the transform maps from this space to its parent, i.e. the translation is the position in the parent space.
Implementation note: This explicit overload prevents interpretation of the float as bool, leading to a call to the wrong overload.
rerun::archetypes::Transform3D::Transform3D |
( |
const datatypes::Vec3D & |
translation, |
|
|
float |
uniform_scale, |
|
|
bool |
from_parent = false |
|
) |
| |
|
inline |
From translation & uniform scale only.
- Parameters
-
translation | 3D translation vector, applied last. |
uniform_scale | Uniform scale factor that is applied to all axis equally. |
from_parent | If true, this transform is from the parent space to the space where the transform was logged. |
If false (default), the transform maps from this space to its parent, i.e. the translation is the position in the parent space.
Implementation note: This explicit overload prevents interpretation of the float as bool, leading to a call to the wrong overload.
rerun::archetypes::Transform3D::Transform3D |
( |
const datatypes::Rotation3D & |
rotation, |
|
|
float |
uniform_scale, |
|
|
bool |
from_parent = false |
|
) |
| |
|
inline |
From rotation & uniform scale.
- Parameters
-
rotation | 3D rotation, applied second. |
uniform_scale | Uniform scale factor that is applied to all axis equally. |
from_parent | If true, this transform is from the parent space to the space where the transform was logged. |
If false (default), the transform maps from this space to its parent, i.e. the translation is the position in the parent space.
Implementation note: This explicit overload prevents interpretation of the float as bool, leading to a call to the wrong overload.