C4 Engine
C4 Engine API Documentation

Motor3D::SetTransformMatrix

Defined in:  TSMotor3D.h
Converts a 4 × 4 matrix to its corresponding motor.
Prototype

Motor3D& SetTransformMatrix(const Transform4D& M);

Parameters
M The matrix to convert to a motor.
Description
The SetTransformMatrix function sets the components of a motor to values that represent the same rigid motion as the one represented by the matrix specified by the M parameter.

This function expects the matrix M to be orthogonal and have a determinant of +1. If these conditions are not met, then the results are unlikely to be meaningful.
See Also

Motor3D::GetTransformMatrix

Motor3D::GetInverseTransformMatrix

Motor3D::GetTransformMatrices

Motor3D::MakeRotation

Motor3D::MakeTranslation

Motor3D::MakeScrew