예제 #1
0
        public static float4x4 TransformInertiaTensor(float4 tensor, quaternion rotation)
        {
            float4x4 rotMatrix = rotation.toMatrix();

            return(math.mul(rotMatrix, math.mul(tensor.asDiagonal(), math.transpose(rotMatrix))));
        }