Struct Vector2F
Vector2F structure
Vector with 2 float parameters
public struct Vector2F : IEquatable<Vector2F>
Constructors
| Name | Description |
|---|
| Vector2F(Vector2F) | Initializes a new instance of the Vector2F struct. |
| Vector2F(float, float) | Initializes a new instance of the Vector2F struct. |
Properties
Methods
| Name | Description |
|---|
| override Equals(object) | Returns a boolean indicating whether the given Object is equal to this Vector2F instance. |
| Equals(Vector2F) | Returns a boolean indicating whether the given Vector2F is equal to this Vector2F instance. |
| override GetHashCode() | Returns the hash code for this instance. |
| static DotProduct(Vector2F, Vector2F) | Returns the dot product of two vectors. |
| operator + | Adds two vectors together. |
| operator == | Returns a boolean indicating whether the two given vectors are equal. |
| operator != | Returns a boolean indicating whether the two given vectors are not equal. |
| operator * | Multiplies vector by scalar value. |
| operator - | Subtracts the second vector from the first. |
Fields
| Name | Description |
|---|
| X | X coordinate |
| Y | Y coordinate |
See Also