Drawing3d documented Class Library

Line Methods

The methods of the Line class are listed below. For a complete list of Line class members, see the Line Members topic.

Public Instance Methods

Changed (inherited from Curve) This method is called, when the curve is changed. It fires the event OnChanged
Clone (inherited from Curve) Produces an exact copy of the curve by using the BinaryFormatter. So you have to mark a new instance of Curve with the attribute [Serializable].
Cross (inherited from Curve)Overloaded. Crosses the Curve with an other curve by crossing the interpolating polygonarray.
Derivation Overrides the abstract value function Derivationof the curve class and returns direction B - A
Distance (inherited from Curve)Overloaded. This method calculates the distance of a LineType to a Curve only in case, when the distance is smaller then MaxDist, otherwise big will be returned. You can imagine a cylinders with radius MaxDist around the Curve. If the line goes through the "curved" cylinder, then the distance will be calculated and returned.
Equals (inherited from Object) 
FindType (inherited from Curve) Gets the associated type of an ID
GetCrossList (inherited from Curve) Get a CrossList, which contains the crossing points with another curve?. The parameter param1 and param2 in CrossItem are converted to a curve parameter.
GetHashCode (inherited from Object) 
GetMaxrect (inherited from Curve)Overloaded. Gets a minimal rectangle, which contains a curve, transformed by a transformation.
GetType (inherited from Object) 
InsertPoint (inherited from Curve) Inserts a point at the position, which is given by Param.
Invert (inherited from Curve) Inverts the direction of the curve by exchange A and B resp. Atang and Btang
LengthToParam (inherited from Curve) Converts a length to a param, which can be used in the method Value.
LoadFromStream (inherited from Curve) Loads A an B.
Parallel (inherited from Curve) Returns a leftside parallel xyArray to the curve, which has a distance of width.
ParamToLength (inherited from Curve) Calculates the length of a part of the curve, which is given from 0 to the value param.
SaveToStream (inherited from Curve) Saves A an B.
SetBorderOverloaded. Overrides the SetBorder-method.
Slice Overrides the Slice-Method.
ToArray (inherited from Curve) This method fills values, calculated by the function Value in an array, starting at index.
ToString (inherited from Object) 
ToXYArray (inherited from Curve) Gets an array of Resolution+1 interpolationpoints.
Transform Overrides the Transform-method and transforms the points A and B.
Value Overrides the abstract value function Valueof the curve class and returns the linear function through A and B

Protected Instance Methods

Finalize (inherited from Object) 
getA Overrides the getA-method and returns the value of a local variable.
getAtang (inherited from Curve) This method is the getMethod of the Atang-property, which retrieves the start tangent. By default Derivation(fromParam) is returned.
getB Overrides the getB-method and returns the value of a local variable.
getBtang (inherited from Curve) This method is the getMethod of the Btang-property, which retrieves the Endtangent. By default Derivaion(toParam) is returned.
GetMaxrect (inherited from Curve)Overloaded. Gets the smaller rectangle, which contains the curve.
getVisible (inherited from Curve) virtual getmethod of the property Visible
MemberwiseClone (inherited from Object) 
setA Overrides the setA-method and saves the value in a local variable.
setAtang Overrides the setAtang-method and ignores the setting.
setB Overrides the setB-method and saves the value in a local variable.
setBtang Overrides the setBtang-method and ignores the setting.
setVisible (inherited from Curve) Virtual setmethod of the property Visible

See Also

Line Class | Drawing3d.Curves Namespace