コード例 #1
0
ファイル: BurstMath.cs プロジェクト: duncgibbs/Naxos
        public static float4x4 TransformInertiaTensor(float4 tensor, quaternion rotation)
        {
            float4x4 rotMatrix = rotation.toMatrix();

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