Jamoma API
0.6.0.a19
|
The TTSpatEntity class describes the geometry of a point. More...
#include <TTSpatEntity.h>
Public Member Functions | |
TTSpatEntity () | |
Constructor. | |
virtual | ~TTSpatEntity () |
Destructor. | |
void | getPosition (TTFloat64 &x, TTFloat64 &y, TTFloat64 &z) |
Get the current position of the point. More... | |
void | setPosition (TTFloat64 x, TTFloat64 y, TTFloat64 z) |
Set the position of the point. More... | |
void | getOrientation (TTFloat64 &q1, TTFloat64 &q2, TTFloat64 &q3, TTFloat64 &q4) |
Get the orientation of the point expressed as quaternions. More... | |
void | setOrientation (TTFloat64 q1, TTFloat64 q2, TTFloat64 q3, TTFloat64 q4) |
Set the orientation of the point expressed as quaternions. More... | |
Protected Attributes | |
std::array< TTFloat64, 3 > | mPosition |
Position as Cartesian coordinates. | |
std::array< TTFloat64, 4 > | mOrientation |
The orientation of the object using Euler coordinates. | |
std::array< TTFloat64, 4 > | mData |
Storage for up to 4 values that can be used by subclasses. | |
The TTSpatEntity class describes the geometry of a point.
It can be used to describe a source or a sink, and includes the minimum amount of descriptors as defined in the core section of the SpatDIF specs.
Definition at line 26 of file TTSpatEntity.h.
void TTSpatEntity::getOrientation | ( | TTFloat64 & | q1, |
TTFloat64 & | q2, | ||
TTFloat64 & | q3, | ||
TTFloat64 & | q4 | ||
) |
Get the orientation of the point expressed as quaternions.
q1 | First coordinate of the point. |
q2 | Second coordinate of the point. |
q3 | Third coordinate of the point. |
q4 | Fourth coordinate of the point. |
Definition at line 49 of file TTSpatEntity.cpp.
References mOrientation.
Get the current position of the point.
x | Cartesian x-coordinate of the point. |
y | Cartesian y-coordinate of the point. |
z | Cartesian z-coordinate of the point. |
Definition at line 33 of file TTSpatEntity.cpp.
References mPosition.
Set the orientation of the point expressed as quaternions.
q1 | First coordinate of the point. |
q2 | Second coordinate of the point. |
q3 | Third coordinate of the point. |
q4 | Fourth coordinate of the point. |
Definition at line 58 of file TTSpatEntity.cpp.
References mOrientation.
Set the position of the point.
x | Cartesian x-coordinate of the point. |
y | Cartesian y-coordinate of the point. |
z | Cartesian z-coordinate of the point. |
Definition at line 41 of file TTSpatEntity.cpp.
References mPosition.