float3x3 float3x3::FromEulerZYZ(float z2, float y, float z) { float3x3 r; Set3x3PartRotateEulerZYZ(r, z2, y, z); assert(r.Equals(float3x3::RotateZ(z2) * float3x3::RotateY(y) * float3x3::RotateZ(z))); return r; }
float3x4 float3x4::FromEulerZYZ(float z2, float y, float z) { float3x4 r; r.SetTranslatePart(0,0,0); Set3x3PartRotateEulerZYZ(r, z2, y, z); assume(r.Equals(float3x4::RotateZ(z2) * float3x4::RotateY(y) * float3x4::RotateZ(z))); return r; }