This struct defines a two-dimensional vector of integer numbers. Operators \(a+b\), \(a-b\) and \(a|b\) (Scalar product) can be used. One operand on \(a*b\) and \(a/b\) can be an integer too. Implicit casting to System.Drawing.Point and System.Drawing.Size is supported.
More...
|
| static int | Max (Vector a) |
| | Returns the maximal component of a Vector. More...
|
| |
| static implicit | operator Point (Vector vector) |
| | Converts a Vector object into System.Drawing.Point object. More...
|
| |
| static implicit | operator Size (Vector vector) |
| | Converts a Vector object into System.Drawing.Size object. More...
|
| |
| static implicit | operator Vector (Point point) |
| | Converts a System.Drawing.Point object into a Vector object. More...
|
| |
| static implicit | operator Vector (Size size) |
| | Converts a System.Drawing.Size object into a Vector object. More...
|
| |
| static | operator Vector (VectorD vector) |
| | Converts a VectorD object to a Vector object. More...
|
| |
| static bool | operator!= (Vector vector1, Vector vector2) |
| | Compares two Vector for inequality. The comparison will be done by comparing the values of the two x- and y-components respectively. More...
|
| |
| static Vector | operator% (Vector vector, int divisor) |
| | Performs a component-wise modulo operation of a Vector object and a int value. More...
|
| |
| static Vector | operator* (int factor, Vector vector) |
| | Multiplies a Vector object by a int value. More...
|
| |
| static Vector | operator* (Vector a, Vector b) |
| | Multiplies two Vector objects. More...
|
| |
| static Vector | operator* (Vector vector, int factor) |
| | Multiplies a Vector object by a int value. More...
|
| |
| static Vector | operator+ (Vector a, Vector b) |
| | Adds two Vector objects. More...
|
| |
| static Vector | operator- (Vector a, Vector b) |
| | Subtracts two Vector objects. More...
|
| |
| static Vector | operator/ (int number, Vector vector) |
| | Performs a component-wise division of a int value and a Vector object. The result is defined as new Vector(number / vector.X, number / vector.Y). More...
|
| |
| static Vector | operator/ (Vector a, Vector b) |
| | Performs a component-wise division of two Vector objects. More...
|
| |
| static Vector | operator/ (Vector vector, int divisor) |
| | Performs a component-wise division of a Vector object and a int value. More...
|
| |
| static bool | operator== (Vector vector1, Vector vector2) |
| | Compares two Vector for equality. The comparison will be done by comparing the values of the two x- and y-components respectively. More...
|
| |
| static int | operator| (Vector a, Vector b) |
| | Calculates the scalar product of two Vector objects. More...
|
| |
| static Vector | Parse (string stringToParse) |
| | Converts a string generated by the ToString method back into a Vector object. More...
|
| |
This struct defines a two-dimensional vector of integer numbers. Operators \(a+b\), \(a-b\) and \(a|b\) (Scalar product) can be used. One operand on \(a*b\) and \(a/b\) can be an integer too. Implicit casting to System.Drawing.Point and System.Drawing.Size is supported.