An NDoc Documented Class Library

xyzArray Members

xyzArray overview

Public Instance Constructors

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

Public Instance Fields

data Array, which holds the points

Public Instance Properties

Count The property Count holds the number of elemements. the property is also settable.
Item This is the default indexexer property

Public Instance Methods

AddValue You can add a point
ClockWise Indicates the orientation. If the crossvector looks to the same side of the array like the Direction then the result is true else it is false.
copy Creates a copy of the polygon and retrieves them.
cross Calcuates the crossproduct over all members, which is usefull for calculation of the normal and the area of the array. If case the polygon is plane Cross is a normal and has the length : 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) 
GetEnumerator Implements the method GetEnumerator and returns the IEnumerator of the datafield.
GetHashCode (inherited from Object) 
GetPlane Returns a plane, which contains the first the different points, if they exist else null will be returned.
GetType (inherited from Object) 
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.
MaxBoxOverloaded. Calculates a environmentbox with axes parallel to unitbase for the array
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
ToString (inherited from Object) 
ToxyArray Converts a xyzArray to a xyArray by omitting the z-coordinate
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, 1);
    a[1]= new xyz(1,-1, 2);
    a[2]= new xyz(3, 4, 2);
    a[3]= new xyz(2, 2, 1);
    //a.Value(0.5) = (1, 0, 1.5)

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

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