An NDoc Documented Class Library

MNCurve Members

MNCurve overview

Public Instance Fields

OnChanged (inherited from Curve) 
Resolution (inherited from Curve) 
Tag (inherited from Curve) 
Visible (inherited from Curve) 

Public Instance Properties

A Returns and sets the StartPoint.See getA and setA
Atang Returns and sets the starttangent. See getAtang, setAtang and Btang
B Returns and sets the EndPoint.See getB and setB
Btang Returns and sets the endtangent. See getBtang, setBtang and Atang
CurveLength (inherited from Curve) Retrieves the length of the curve.
fromParam (inherited from Curve) 
Maxrect (inherited from Curve) 
Smooth 
toParam (inherited from Curve) 

Public Instance Methods

Changed (inherited from Curve) 
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) 
Derivation (inherited from Curve) This abstract method must be overridden. He returns the first deriavation of the function defined in the method Value. All parameter t are taken from the interval [fromParam,toParam].
Distance (inherited from Curve) This method calculates the distance of a LineType to a Curve only in case, when the distance is smaller then MaxDist else big will be returned. You can imagine a cylinders with radius MaxDist around the Curve. If now the line goes through the "curved" cylinder, then this is a good one and the distance will be calculated and returned.
Equals (inherited from Object) 
GetCrossList (inherited from Curve) 
GetHashCode (inherited from Object) 
GetMaxrect (inherited from Curve)Overloaded.  
GetType (inherited from Object) 
InsertPoint (inherited from Curve) 
Invert 
LengthToParam (inherited from Curve) Converts a length to a param, which ca be used in the method Value.
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 form 0 to the value param.
Slice (inherited from Curve) This method trims the curve to the part bewtween from and to. The base-method sets fromParam = from and toParam = to. In general this is not the best solution. So it is better to override this method without call to the basemethod.
ToArray (inherited from Curve) This method fills values, calculated by the function Value in an array, starting at index.
ToString (inherited from Object) 
Transform (inherited from Curve) Transforms a Curve with the transformation given by m. The method in the baseclass is empty. So you have to override this function, if you want to transform a Curve.
Value (inherited from Curve) This abstract method must be overridden. He returns the function for a value t.
public xy Value(double t){
return new xy(cos(t), sin(t));
}
public xy Drivation(double t){
return new xy(-sin(t), cos(t));
}
This sample implements an unitcircle.

Protected Instance Constructors

MNCurve Constructor Initializes a new instance of the MNCurve class.

Protected Instance Methods

Finalize (inherited from Object) 
getA This is the virtual Get-Method of A. By default she calls 'Value(fromParam)'.
getAtang This method is the getMethod of the Atang-property, which retrieves the starttangent. By default Derivaion(fromParam) is returned.
getB This is the virtual Get-Method of B. By default she calls 'Value(toParam)'.
getBtang This method is the getMethod of the Btang-property, which retrieves the Endtangent. By default Derivaion(toParam) is returned.
GetMaxrect (inherited from Curve)Overloaded.  
MemberwiseClone (inherited from Object) 
setA This method is the setMethod of the A-property, which retrieves the StartPoint. This method is abstract and must be overridden.
setAtang This method is the setMethod of the Atang-property, which retrieves the starttangent. This method is abstract and must be overridden.
setB This method is the setMethod of the B-property, which retrieves the EndPoint. This method is abstract and must be overridden.
setBtang This method is the setMethod of the Btang-property, which retrieves the endtangent. This method is abstract and must be overridden.

See Also

MNCurve Class | Minais.Drawing3d.Curves Namespace