float3x3 float3x3::FromEulerXYZ(float x, float y, float z) { float3x3 r; Set3x3PartRotateEulerXYZ(r, x, y, z); assert(r.Equals(float3x3::RotateX(x) * float3x3::RotateY(y) * float3x3::RotateX(z))); return r; }
float3x4 float3x4::FromEulerXYZ(float x, float y, float z) { float3x4 r; r.SetTranslatePart(0,0,0); Set3x3PartRotateEulerXYZ(r, x, y, z); assume(r.Equals(float3x4::RotateX(x) * float3x4::RotateY(y) * float3x4::RotateZ(z))); return r; }