/// <summary> /// Create a translation and rotation. /// </summary> static public Matrix4x4f TranslateRotate(Vector3f t, Quaternion3f r) { Matrix4x4f T = Translate(t); Matrix4x4f R = r.ToMatrix4x4f(); return(T * R); }
/// <summary> /// Create a rotation and scale. /// </summary> static public Matrix4x4f RotateScale(Quaternion3f r, Vector3f s) { Matrix4x4f R = r.ToMatrix4x4f(); Matrix4x4f S = Scale(s); return(R * S); }
/// <summary> /// Create a translation, rotation and scale. /// </summary> static public Matrix4x4f TranslateRotateScale(Vector3f t, Quaternion3f r, Vector3f s) { Matrix4x4f T = Translate(t); Matrix4x4f R = r.ToMatrix4x4f(); Matrix4x4f S = Scale(s); return(T * R * S); }