Apply() public method

Applies an isometry to a complex number.
public Apply ( System.Numerics.Complex z ) : System.Numerics.Complex
z System.Numerics.Complex
return 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();
 }