|
|
DividedCurve Class |
Namespace: Karamba.Utilities.Mesher
The DividedCurve type exposes the following members.
| Name | Description | |
|---|---|---|
| DividedCurve |
Initializes a new instance of the DividedCurve class.
|
| Name | Description | |
|---|---|---|
| _subdivisions |
Gets the list of pairs of curve parameters of subdivisions and random numbers
Antwort auf Frage, warum zufällig: Es geht um Erzeugen von eindeutigen Hashes.
Ich hätte es Hash nennen sollen.
Die Funktionen GetHash() etc. erzeugen nicht immer eindeutige Hashes, aber Zufallszahlen schon.
C#'s getHashCode() Funktion hatte einmal einen schwer zu debuggenden Bug verursacht, weil sie nicht zwischen Rhino's Punkten unterschied.
Mit Zufallszahlen war das Problem behoben.
Die Wahrscheinlichkeit, merhmals dieselbe Zahl zu ziehen, ist verschwindend gering, es gibt genug Integer,
nämlich ca. zwei Milliarden.
Man kann es ohne Zufallszahl machen, müsste aber dann mehr Aufwand treiben für einen geringen Gewinn.
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InsertSubdivisionAt |
insert a subdivision at a given position.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Merge |
Adds another DividedCurve-object to this.
| |
| points |
Return list of points which correspond to subdivisions.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |