Curve Constructor
|
Initializes a new instance of the Curve class. |
CurveLength | Retrieves the length of the curve. |
fromParam | |
Maxrect | |
toParam |
Changed | |
Clone | 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 | |
Derivation | 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 | 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 | |
GetHashCode (inherited from Object) | |
GetMaxrect | Overloaded. |
GetType (inherited from Object) | |
InsertPoint | |
Invert | Inverts the orientation of a curve. The base-method is empty. You should it override in a derived class. |
LengthToParam | Converts a length to a param, which ca be used in the method Value. |
Parallel | Returns a leftside parallel xyArray to the curve, which has a distance of width. |
ParamToLength | Calculates the length of a part of the curve, which is given form 0 to the value param. |
Slice | 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 | This method fills values, calculated by the function Value in an array, starting at index. |
ToString (inherited from Object) | |
Transform | 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 | 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. |
Finalize (inherited from Object) | |
GetMaxrect | Overloaded. |
MemberwiseClone (inherited from Object) |