|
| double | Abs () |
| | Calculates the absolute value of this VectorD object. The absolute value corresponds with the length of the vector.
|
| |
| VectorD | Ceil () |
| | Calculates smallest integers less than X and Y component and creates new VectorD using them.
|
| |
| VectorD | ComponentAbs () |
| | Calculates the absolute values of both elements of the current VectorD and creates new one using them.
|
| |
| VectorD | Floor () |
| | Calculates smallest integers greater than X and Y component and creates new VectorD using them.
|
| |
| double | Max () |
| | returns the maximal component value
|
| |
| double | Min () |
| | returns the minimal component value
|
| |
| double | Norm () |
| | Calculates the norm (squared absolute value) of the present VectorD object.
|
| |
| void | Normalize () |
| | Normalizes the present VectorD object.
|
| |
| VectorD | Reziprocal () |
| | Calculates the reciprocals of both components of current VectorD object and returns the result as new object.
|
| |
| VectorD | Round () |
| | Rounds both X and Y coordinate of a VectorD to an integer and creates new VectorD using them.
|
| |
| Vector | RoundToVector () |
| | Round both X and Y to int and returns a Vector.
|
| |
| VectorD | Sqrt () |
| | Calculates the square roots of the components of the present VectorD object and returns a new object.
|
| |
| override string | ToString () |
| | Converts this VectorD into a string of format (X; Y).
|
| |
| string | ToString (int numberOfDigits) |
| | Converts this VectorD into a string of format (X; Y).
|
| |
| | VectorD (double x, double y) |
| | Creates a VectorD from two double values.
|
| |
| | VectorD (Tuple< double, double > values) |
| | Initializes a new instance of the VectorD struct. from a tuple of two doubles.
|
| |
| | VectorD (Vector vector) |
| | Creates a new VectorD object from an existing Vector.
|
| |
| | VectorD (VectorD vector) |
| | Creates a new VectorD object from an existing object.
|
| |
|
| static double | AngleBetweenVectors (VectorD vector1, VectorD vector2) |
| | Calculates the angle between two vectors in radian.
|
| |
| static bool | AreCollinear (VectorD v1, VectorD v2) |
| | Checks whether two VectorD objects are collinear, i.e. they are parallel or anti-parallel.
|
| |
| static VectorD | Max (VectorD v1, VectorD v2) |
| | Gets the component-wise maximum of two double vectors.
|
| |
| static VectorD | Min (VectorD v1, VectorD v2) |
| | Gets the component-wise minimum of two double vectors.
|
| |
| static implicit | operator PointF (VectorD vector) |
| | Converts a VectorD object into a System.Drawing.PointF object.
|
| |
| static implicit | operator SizeF (VectorD vector) |
| | Converts a VectorD object into a System.Drawing.SizeF object.
|
| |
| static implicit | operator Vector2D (VectorD vector) |
| | Converts a VectorD object into a System.Drawing.SizeF object.
|
| |
| static implicit | operator VectorD ((double x, double y) tuple) |
| | Converts a tuple of two doubles into a VectorD object.
|
| |
| static implicit | operator VectorD (PointF size) |
| | Converts a System.Drawing.PointF object into a VectorD object.
|
| |
| static implicit | operator VectorD (SizeF size) |
| | Converts a System.Drawing.SizeF object into a VectorD object.
|
| |
| static implicit | operator VectorD (Vector vector) |
| | Converts a Vector object to a VectorD object.
|
| |
| static implicit | operator VectorD (VectorL vector) |
| | Converts a VectorL object to a VectorD object.
|
| |
| static bool | operator!= (VectorD vector1, VectorD vector2) |
| | Compares two VectorD for inequality. The comparison will be done by comparing the values of the two x- and y- components respectively.
|
| |
| static VectorD | operator* (double factor, VectorD vector) |
| | Multiplies a VectorD objects by a double value.
|
| |
| static VectorD | operator* (VectorD a, VectorD b) |
| | Multiplies two VectorD objects.
|
| |
| static VectorD | operator* (VectorD vector, double factor) |
| | Multiplies a VectorD objects by a double value.
|
| |
| static VectorD | operator+ (VectorD a, VectorD b) |
| | Adds two VectorD objects.
|
| |
| static VectorD | operator- (VectorD a) |
| | Returns the negated argument. ()
|
| |
| static VectorD | operator- (VectorD a, VectorD b) |
| | Subtracts two VectorD objects.
|
| |
| static VectorD | operator/ (double number, VectorD vector) |
| | Performs a component wise division of a double value and a VectorD object. The result is defined as new VectorD(number / vector.X, number / vector.Y).
|
| |
| static VectorD | operator/ (VectorD a, VectorD b) |
| | Performs a component wise division of two VectorD objects.
|
| |
| static VectorD | operator/ (VectorD vector, double divisor) |
| | Performs a component wise division of a VectorD object and a double value.
|
| |
| static bool | operator== (VectorD vector1, VectorD vector2) |
| | Compares two VectorD for equality. The comparison will be done by comparing the values of the two x- and y- components respectively.
|
| |
| static double | operator| (VectorD a, VectorD b) |
| | Calculates the scalar product of two VectorD objects.
|
| |
| static VectorD | Parse (string vectorDAsString) |
| | parse function of the VectorD class
|
| |
| static VectorD | Power (VectorD vector, double exp) |
| | Raises both components of current VectorD to the power of exp and creates new one using them.
|
| |
This struct defines a two-dimensional vector of double numbers. Operators \(a+b\), \(a-b\) and \(a|b\) (Scalar product) can be used. One operand on \(a*b\), \(a/b\) (applied separate on components) can be also a double. It is also possible to raise a VectorD to a given power ( \(a^b\)). Implicit casting from Vector is supported.