Exemplo n.º 1
0
        public static Matrix4x4 Lerp(ref ChiselPathPoint A, ref ChiselPathPoint B, float t)
        {
            var position = MathExtensions.Lerp(A.position, B.position, t);
            var rotation = MathExtensions.Lerp(A.rotation, B.rotation, t);
            var scale    = MathExtensions.Lerp(A.scale, B.scale, t);

            return(ToMatrix(position, rotation, scale));
        }
Exemplo n.º 2
0
 static Point Convert(ChiselPathPoint srcPoint)
 {
     return(new Point
     {
         position = srcPoint.position,
         rotation = srcPoint.rotation,
         scale = srcPoint.scale,
     });
 }