Vector2d
ReferencesConstructors
Properties
Methods
(Provided for languages that do not support operator overloading. You can use the + operator otherwise)
0: if this is identical to other
-1: if this.X < other.X
-1: if this.X == other.X and this.Y < other.Y
+1: otherwise.
(Provided for languages that do not support operator overloading. You can use the / operator otherwise)
Equals
#GetHashCode
#(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
This value equals v1.Length * v2.Length * cos(alpha), where alpha is the angle between vectors.
(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
(Provided for languages that do not support operator overloading. You can use the * operator otherwise)
(Provided for languages that do not support operator overloading. You can use the - unary operator otherwise)
(Provided for languages that do not support operator overloading. You can use the - operator otherwise)
ToString
#Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| Vector2d | + | Vector2d | Vector2d | Sums up two vectors. |
| Vector2d | / | double | Vector2d | Divides a Vector2d by a number, having the effect of shrinking it. |
| Vector2d | == | Vector2d | bool | Determines whether two vectors have equal values. |
| Vector2d | > | Vector2d | bool | Determines whether the first specified vector comes after (has superior sorting value than) the second vector. Components have decreasing evaluation priority: first X, then Y. |
| Vector2d | >= | Vector2d | bool | Determines whether the first specified vector comes after (has superior sorting value than) the second vector, or it is equal to it. Components have decreasing evaluation priority: first X, then Y. |
| Vector2d | != | Vector2d | bool | Determines whether two vectors have different values. |
| Vector2d | < | Vector2d | bool | Determines whether the first specified vector comes before (has inferior sorting value than) the second vector. Components have decreasing evaluation priority: first X, then Y. |
| Vector2d | <= | Vector2d | bool | Determines whether the first specified vector comes before (has inferior sorting value than) the second vector, or it is equal to it. Components have decreasing evaluation priority: first X, then Y. |
| Vector2d | * | Vector2d | double | Multiplies two vectors together, returning the dot product (or inner product). |
| double | * | Vector2d | Vector2d | Multiplies a vector by a number, having the effect of scaling it. |
| Vector2d | * | double | Vector2d | Multiplies a vector by a number, having the effect of scaling it. |
| Vector2d | - | Vector2d | Vector2d | Subtracts the second vector from the first one. |
| - | Vector2d | Vector2d | Computes the opposite vector. | |