Vector2d
ReferencesConstructors
Properties
Methods
(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)
Equals
#| obj (object) | The specified object. |
| vector (Vector2d) | The specified vector. |
GetHashCode
#| tolerance (double) | A nonzero value used as the coordinate zero tolerance. . |
(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 * operator otherwise)
(Provided for languages that do not support operator overloading. You can use the - unary operator otherwise)
| vector (Vector2d) | A vector to negate. |
| angleRadians (double) | Angle of rotation (in radians). |
(Provided for languages that do not support operator overloading. You can use the - operator otherwise)
| obj (object) |
| info (SerializationInfo) | |
| context (StreamingContext) |
ToString
#| format (string) | The format to use. -or- A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation. |
| formatProvider (IFormatProvider) | The provider to use to format the value. -or- A null reference (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. | |