Apply() 공개 메소드

Applies an isometry to a complex number.
public Apply ( System.Numerics.Complex z ) : System.Numerics.Complex
z System.Numerics.Complex
리턴 System.Numerics.Complex
예제 #1
0
        /// <summary>
        /// Simple helper to transform an array of vertices using an isometry.
        /// Warning! Allocates a new array.
        /// </summary>
        public static Vector3D[] TransformVertices(Vector3D[] vertices, Isometry isometry)
        {
            List <Vector3D> result = new List <Vector3D>();

            for (int i = 0; i < vertices.Length; i++)
            {
                Vector3D transformed = isometry.Apply(vertices[i]);
                result.Add(transformed);
            }
            return(result.ToArray());
        }
예제 #2
0
 /// <summary>
 /// Simple helper to transform an array of vertices using an isometry.
 /// Warning! Allocates a new array.
 /// </summary>
 public static Vector3D[] TransformVertices( Vector3D[] vertices, Isometry isometry )
 {
     List<Vector3D> result = new List<Vector3D>();
     for( int i = 0; i < vertices.Length; i++ )
     {
         Vector3D transformed = isometry.Apply( vertices[i] );
         result.Add( transformed );
     }
     return result.ToArray();
 }