class MAGES::Utilities::TransformExtensions¶
Overview¶
Extensions for Transform class. More…
class TransformExtensions { public: // methods static Pose GetPose(this Transform t); static Pose GetLocalPose(this Transform t); static void SetPose(this Transform t, in Pose p); };
Detailed Documentation¶
Extensions for Transform class.
Methods¶
static Pose GetPose(this Transform t)
Gets the transform position and rotation as pose.
Parameters:
t |
The transform to get the pose for. |
Returns:
The position and rotation of the transform in a pose.
static Pose GetLocalPose(this Transform t)
Gets the transform local position and rotation as pose.
Parameters:
t |
The transform to get the pose for. |
Returns:
The local position and rotation of the transform in a pose.
static void SetPose(this Transform t, in Pose p)
Sets the transform from a pose.
Parameters:
t |
The transform to set the pose of. |
p |
The pose to set the transform to. |