Example #1
0
        public static IFinMatrix4x4 FromTranslation(float x, float y, float z)
        {
            var matrix = MatrixTransformUtil.FromIdentity();

            matrix[0, 3] = x;
            matrix[1, 3] = y;
            matrix[2, 3] = z;

            matrix.UpdateIsIdentity();

            return(matrix);
        }
Example #2
0
 public static IFinMatrix4x4 FromRotation(IRotation rotation)
 => MatrixTransformUtil.FromRotation(QuaternionUtil.Create(rotation));
Example #3
0
 public static IFinMatrix4x4 FromTranslation(IPosition translation)
 => MatrixTransformUtil.FromTranslation(
     translation.X,
     translation.Y,
     translation.Z);