Vector2d Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a 2D vector using two double-precision floating-point numbers.
[System.Serializable]
public struct Vector2d : IEquatable<OpenTK.Vector2d>
type Vector2d = struct
- Inheritance
-
Vector2d
- Attributes
- Implements
Constructors
Vector2d(Double) | |
Vector2d(Double, Double) |
Constructs left vector with the given coordinates. |
Fields
One |
Defines an instance with all components set to 1. |
SizeInBytes |
Defines the size of the Vector2d struct in bytes. |
UnitX |
Defines a unit-length Vector2d that points towards the X-axis. |
UnitY |
Defines a unit-length Vector2d that points towards the Y-axis. |
X |
The X coordinate of this instance. |
Y |
The Y coordinate of this instance. |
Zero |
Defines a zero-length Vector2d. |
Properties
Length |
Gets the length (magnitude) of the vector. |
LengthSquared |
Gets the square of the vector length (magnitude). |
PerpendicularLeft |
Gets the perpendicular vector on the left side of this vector. |
PerpendicularRight |
Gets the perpendicular vector on the right side of this vector. |
Methods
Operators
Addition(Vector2d, Vector2d) | |
Division(Vector2d, Double) | |
Equality(Vector2d, Vector2d) |
Compares two instances for equality. |
Explicit(Vector2 to Vector2d) | |
Explicit(Vector2d to Vector2) | |
Inequality(Vector2d, Vector2d) |
Compares two instances for ienquality. |
Multiply(Double, Vector2d) | |
Multiply(Vector2d, Double) | |
Subtraction(Vector2d, Vector2d) | |
UnaryNegation(Vector2d) |