Download SmartCollision™ SDK

Transcript
Transformation of SCObject can be obtained by using the method SCObject::GetTransformation. The
syntax of SCObject::GetTransformation is as follows.
SCint SCObject::GetTransformation(SCenum type, SCdouble*trans)const;
SCint SCObject::GetTransformation(SCenum type, SCfloat*trans)const;
GetTransformation also has an argument to specify types of transformation. Table 7-2 shows types of
GetTransforamtion. The size of array for the values depends on the type of transformation.
Table 7-2: Types of GetTransformation
Types of transformation
Value to be get
rWC − RrLC
SC_POSITION_ORIGIN
SC_POSITION_WORLD_CENTER
rWC
SC_POSITION_LOCAL_CENTER
SC_ORIENTATION_QUATERNION
rLC
q
SC_ORIENTATION_MATRIX
R
SC_TRANSFORMATION_MATRIX
M
7-5