TinyRobotics
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Transform3D Struct Reference

Represents a 3D rigid body transform: translation (tx, ty, tz) and quaternion rotation (qx, qy, qz, qw). More...

#include <FrameMgr3D.h>

Public Member Functions

Transform3D operator* (const Transform3D &other) const
 
Transform3D inverse () const
 
std::array< float, 3 > apply (const std::array< float, 3 > &point) const
 Applies this transform to a 3D point (x, y, z). Rotates the point by the quaternion and then translates it.
 

Static Public Member Functions

static Transform3D identity ()
 

Public Attributes

float tx = 0
 
float ty = 0
 
float tz = 0
 
float qx = 0
 
float qy = 0
 
float qz = 0
 
float qw = 1
 

Detailed Description

Represents a 3D rigid body transform: translation (tx, ty, tz) and quaternion rotation (qx, qy, qz, qw).

Member Function Documentation

◆ apply()

std::array< float, 3 > apply ( const std::array< float, 3 > &  point) const
inline

Applies this transform to a 3D point (x, y, z). Rotates the point by the quaternion and then translates it.

Parameters
pointArray of 3 floats: {x, y, z}
Returns
Transformed point as std::array<float, 3>

The documentation for this struct was generated from the following file: