/// \param pos Specifies the position of the local space within the /// parent space. /// \param orient Specifies the orientation of the local space within /// the parent space as an Euler angle triplet. void Matrix4x3::setupLocalToParent(const Vector3 &pos, const EulerAngles &orient) { // Create a rotation matrix. RotationMatrix orientMatrix; orientMatrix.setup(orient); // Setup the 4x3 matrix. Note: if we were really concerned with // speed, we could create the matrix directly into these variables, // without using the temporary RotationMatrix object. This would // save us a function call and a few copy operations. setupLocalToParent(pos, orientMatrix); }
void Matrix4x3::setupLocalToParent(const Vector3& pos, const EulerAngles& orient) { RotationMatrix orientMatrix; orientMatrix.setup(orient); setupLocalToParent(pos, orientMatrix); }