The Vector2D type exposes the following members.
Operators
Name | Description | |
---|---|---|
![]() ![]() | Addition(Double, Vector2D) |
value + vector, adds a value to all vector components
|
![]() ![]() | Addition(Vector2D, Double) |
vector + value, adds a value to all vector components
|
![]() ![]() | Addition(Vector2D, Vector2D) |
vector + vector, adds the values of two vectors component wise
|
![]() ![]() | BitwiseAnd |
2d-vector & 2d-vector, performs a 2d-cross product,
this is the signed size of the parallelogram spanned by v1 and v2.
|
![]() ![]() | BitwiseOr |
vector | vector, dot product for vectors, that is the sum of all component wise products
|
![]() ![]() | Division(Double, Vector2D) |
value / vector, divides a value by all vector components
|
![]() ![]() | Division(Vector2D, Double) |
vector / value, divides all vector components by a value
|
![]() ![]() | Division(Vector2D, Vector2D) |
vector / vector, divides the values of two vectors component wise
|
![]() ![]() | Equality |
vector == vector, checks if the two vectors are equal
|
![]() ![]() | GreaterThan |
vector > value, compares all vector components to a value
|
![]() ![]() | GreaterThanOrEqual |
vector >= value, compares all vector components to a value
|
![]() ![]() | Inequality |
vector != vector, checks if the two vectors are not equal
|
![]() ![]() | LessThan |
vector < value, compares all vector components to a value
|
![]() ![]() | LessThanOrEqual |
vector <= value, compares all vector components to a value
|
![]() ![]() | LogicalNot |
! vector, calculates the length of the vector
|
![]() ![]() | Modulus(Double, Vector2D) |
value % vector, a value modulo all vector components
|
![]() ![]() | Modulus(Vector2D, Double) |
vector % value, all vector components modulo a value
|
![]() ![]() | Modulus(Vector2D, Vector2D) |
vector % vector, component wise modulo for vectors
|
![]() ![]() | Multiply(Double, Vector2D) |
value * vector, multiplies a value by all vector components
|
![]() ![]() | Multiply(Vector2D, Double) |
vector * value, multiplies a value by all vector components
|
![]() ![]() | Multiply(Vector2D, Vector2D) |
vector * vector, multiplies the values of two vectors component wise
|
![]() ![]() | OnesComplement |
~ vector, normalizes a vector
|
![]() ![]() | Subtraction(Double, Vector2D) |
value - vector, subtracts all vector components from a value
|
![]() ![]() | Subtraction(Vector2D, Double) |
vector - value, subtracts a value from all vector components
|
![]() ![]() | Subtraction(Vector2D, Vector2D) |
vector - vector, subtracts the components of v2 from the components of v1
|
![]() ![]() | UnaryNegation |
- vector, flips the sign off all vector components
|
![]() ![]() | UnaryPlus |
+ vector, makes no changes to a vector
|