An NDoc Documented Class Library

xyArray Members

xyArray overview

Public Instance Constructors

xyArray Constructor You can initialize the array by the param Acount.

Public Instance Fields

data Array, which holds the points

Public Instance Properties

ClockWise Read and writes the orientation. A xyArray is ClockWise, iff cross > 0. If you sets the value of clockwise to a new value the the array will be inverted.
Count The property Count holds the number of elemements. the property is also settable.
Item This is the default indexexer property
Maxrect 

Public Instance Methods

AddValue You can add a point
Closed 
ContainsPoint 
copy Creates a copy of the polygon and retrieves them.
cross Calcuates the crossproduct over all members, which is usefull for calculation of the orientation and the area of the array. The length of cross : 2 * area of the polygon
delete Deletes Acount points starting at position Index.
Direction Calculates the direction of the polygon in a point, which is described by its param
DistanceOverloaded. This method calculates the distance of the array to a line only in case, when the distance is smaller then MaxDist else Utils.big will be returned. You can imagine a cylinders with radius MaxDist around the polygon. If now the line goes through the one of the cylinder, then this is a good one and the distance will be calculated and returned.
Equals (inherited from Object) 
getCrossListOverloaded.  
GetEnumerator Implements the method GetEnumerator and returns the IEnumerator of the datafield.
GetHashCode (inherited from Object) 
GetMaxrectOverloaded.  
GetType (inherited from Object) 
Inside Checks the position of a point P whether it lays inside the polygon or not.
Invert Inverts the array. the first entry wil be the last and so on.
LengthToParam Converts a given length to a parameter, which can used as param for the Value-method.
ParamToLength Calculates the length of the array form 0 until the parameter given by Param. For a Param = Count you get the full length of the array
SetOperation 
Slice 
ToString (inherited from Object) 
ToxyzArray Converts a xyArray to a xyzArray by lifting each xy to a xyz with z=0;
Transform The method transforms every point in the array by the matrix m.
TransformEx The method transforms every point in the array by the matrix m and returns these points in an array.
Triangulation Calculates a Triangulation ( also known as tesselation ) and returns the triangles in a TriangleList
Value Calculates a point on the polygon belonging to param. For param = 0 , 1, 2, 3 ... you get the points this[0], this[1], this[2], this[3],... For values between a linear intepolation will be done.
xyzArray a = new xyzArray(4);
    a[0]= new xyz(1, 1 );
    a[1]= new xyz(1,-1);
    a[2]= new xyz(3, 4);
    a[3]= new xyz(2, 2);
    //a.Value(2.5) = (2.5, 3)

Protected Instance Methods

Finalize (inherited from Object) 
GetMaxrectOverloaded.  
MemberwiseClone (inherited from Object) 

See Also

xyArray Class | Minais.Drawing3d.Math Namespace | TriangleList | cross