|
UnityMol
0.9.6-875
UnityMol viewer / In developement
|
Inheritance diagram for BenTools.Mathematics.Vector:
Collaboration diagram for BenTools.Mathematics.Vector:Public Member Functions | |
| Vector (int dim) | |
| Vector (params double[] X) | |
| Vector (Vector O) | |
| Vector (string S) | |
| void | Randomize (double Min, double Max) |
| void | Randomize (Vector[] MinMax) |
| void | Multiply (double r) |
| void | Add (Vector V) |
| void | Add (double d) |
| override string | ToString () |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
| int | CompareTo (object obj) |
| virtual Vector | Clone () |
Static Public Member Functions | |
| static Vector | operator- (Vector A, Vector B) |
| static Vector | operator+ (Vector A, Vector B) |
| static double | operator* (Vector A, Vector B) |
| static Vector | operator* (Vector A, double B) |
| static Vector | operator* (double A, Vector B) |
| static | operator double[] (Vector A) |
| static double | Dist (Vector V1, Vector V2) |
Public Attributes | |
| object | Tag =null |
Static Public Attributes | |
| static int | Precision = 10 |
Properties | |
| double | this[int i] [get, set] |
| int | Dim [get] |
| double | SquaredLength [get] |
| double | ElementSum [get] |
Private Member Functions | |
| IEnumerator IEnumerable. | GetEnumerator () |
Private Attributes | |
| double[] | data |
A vector class, implementing all interesting features of vectors
| BenTools.Mathematics.Vector.Vector | ( | int | dim | ) |
| BenTools.Mathematics.Vector.Vector | ( | params double[] | X | ) |
| BenTools.Mathematics.Vector.Vector | ( | Vector | O | ) |
| BenTools.Mathematics.Vector.Vector | ( | string | S | ) |
Build a new vector from a string
| S | A string, as produced by ToString |
Definition at line 46 of file Vector.cs.
References BenTools.Mathematics.MathTools.HighLevelSplit().
Here is the call graph for this function:| void BenTools.Mathematics.Vector.Add | ( | Vector | V | ) |
Add another vector
| V | V |
Definition at line 151 of file Vector.cs.
Referenced by OptimalView.OptimalView.GetOptimalPosition().
Here is the caller graph for this function:| void BenTools.Mathematics.Vector.Add | ( | double | d | ) |
|
virtual |
| int BenTools.Mathematics.Vector.CompareTo | ( | object | obj | ) |
Compare two vectors
Definition at line 314 of file Vector.cs.
References BenTools.Mathematics.Vector.Dim, and BenTools.Mathematics.Vector.SquaredLength.
Get the distance of two vectors
Definition at line 296 of file Vector.cs.
References BenTools.Mathematics.Vector.Dim.
| override bool BenTools.Mathematics.Vector.Equals | ( | object | obj | ) |
Compares this vector with another one
| obj |
data[i].Equals(B.data[i]) &&
Definition at line 199 of file Vector.cs.
References BenTools.Mathematics.Vector.data.
Referenced by BenTools.Mathematics.VNode.ProcessCircleEvent().
Here is the caller graph for this function:
|
private |
| override int BenTools.Mathematics.Vector.GetHashCode | ( | ) |
| void BenTools.Mathematics.Vector.Multiply | ( | double | r | ) |
|
explicitstatic |
Interprete the vector as a double-array
Definition at line 289 of file Vector.cs.
References BenTools.Mathematics.Vector.data.
Get the scalar product of two vectors
Definition at line 256 of file Vector.cs.
References BenTools.Mathematics.Vector.Dim.
Scale one vector
Definition at line 270 of file Vector.cs.
References BenTools.Mathematics.Vector.Dim.
Add two vectors
Definition at line 242 of file Vector.cs.
References BenTools.Mathematics.Vector.Dim.
Subtract two vectors
Definition at line 228 of file Vector.cs.
References BenTools.Mathematics.Vector.Dim.
| void BenTools.Mathematics.Vector.Randomize | ( | double | Min, |
| double | Max | ||
| ) |
Reset all elements with ransom values from the given range
| Min | Min |
| Max | Max |
Definition at line 114 of file Vector.cs.
References BenTools.Mathematics.MathTools.R.
| void BenTools.Mathematics.Vector.Randomize | ( | Vector[] | MinMax | ) |
Reset all elements with ransom values from the given range
| MinMax | MinMax[0] - Min MinMax[1] - Max |
Definition at line 127 of file Vector.cs.
References BenTools.Mathematics.MathTools.R.
| override string BenTools.Mathematics.Vector.ToString | ( | ) |
|
private |
Definition at line 16 of file Vector.cs.
Referenced by BenTools.Mathematics.Vector.Equals(), and BenTools.Mathematics.Vector.operator double[]().
|
static |
|
get |
The dimension of the vector
Definition at line 77 of file Vector.cs.
Referenced by BenTools.Mathematics.Vector.CompareTo(), BenTools.Mathematics.Vector.Dist(), BenTools.Mathematics.Vector.operator*(), BenTools.Mathematics.Vector.operator+(), and BenTools.Mathematics.Vector.operator-().
|
get |
|
get |
The squared length of the vector
Definition at line 88 of file Vector.cs.
Referenced by BenTools.Mathematics.Vector.CompareTo().
|
getset |