simulation.utils.geometry.transform module¶
Transformation.
Reference¶
-
class
Transform(*args, frame=None)[source]¶ Bases:
objectTransformation class consisting of a translation and a rotation.
A Transform object can be used to easily interchange between multiple coordinate systems (which can be transformed in one another via a rotation and a translation.
Initialization can be done in one of the following ways:
- Parameters
-
rotation¶ - Type
pyquaternion.Quaternion
-
property
inverse¶
-
get_angle(axis=Vector(0.0, 0.0, 1.0)) → float[source]¶ Angle of rotation.
- Parameters
axis – Axis the rotation is projected onto.
- Returns
The angle that a vector is rotated, when this transformation is applied.