示例#1
0
 public void Transform(Matrix.Matrix4x4d matrix)
 {
     A = matrix * A;
     B = matrix * B;
     C = matrix * C;
     D = matrix * D;
 }
示例#2
0
 public void Transform(Matrix.Matrix4x4d matrix)
 {
     for (int i = 0; i < Points.Length; i++)
     {
         Points[i] = matrix * Points[i];
     }
 }
示例#3
0
        public void Transform(Matrix.Matrix4x4d matrix)
        {
            Vector3d other = OtherPoint;

            Origin     = matrix * Origin;
            other      = matrix * other;
            OtherPoint = other;
        }
        public void Transform(Matrix.Matrix4x4d matrix)
        {
            for (int i = 0; i < outlines.Length; i++)
            {
                if (!(outlines[i] is ITransformable3d))
                {
                    throw new InvalidOperationException(
                              string.Format("The outline '{0}' at index '{1}' is not transformable", outlines[i], i));
                }
            }

            for (int i = 0; i < outlines.Length; i++)
            {
                (outlines[i] as ITransformable3d).Transform(matrix);
            }
        }
示例#5
0
 public void Transform(Matrix.Matrix4x4d matrix)
 {
     Normal = matrix.Inverse * Normal;
 }
示例#6
0
 public void Transform(Matrix.Matrix4x4d matrix)
 {
     Center = matrix * Center;
 }