The members of MonoMac.OpenGL.Vector2 are listed below.
See Also: Inherited members from System.ValueType
static readonly | One | Vector2. Defines an instance with all components set to 1. |
static readonly | SizeInBytes | int. Defines the size of the Vector2 struct in bytes. |
static readonly | UnitX | Vector2. Defines a unit-length Vector2 that points towards the X-axis. |
static readonly | UnitY | Vector2. Defines a unit-length Vector2 that points towards the Y-axis. |
| X | float. The X component of the Vector2. | |
| Y | float. The Y component of the Vector2. | |
static readonly | Zero | Vector2. Defines a zero-length Vector2. |
| [read-only] | Length | float. Gets the length (magnitude) of the vector. |
| [read-only] | LengthFast | float. Gets an approximation of the vector length (magnitude). |
| [read-only] | LengthSquared | float. Gets the square of the vector length (magnitude). |
| [read-only] | PerpendicularLeft | Vector2. Gets the perpendicular vector on the left side of this vector. |
| [read-only] | PerpendicularRight | Vector2. Gets the perpendicular vector on the right side of this vector. |
Add(Vector2)Add the Vector passed as parameter to this instance. | ||
Add(ref Vector2)Add the Vector passed as parameter to this instance. | ||
static | Add(Vector2, Vector2)Adds two vectors. | |
static | Add(ref Vector2, ref Vector2, out Vector2)Adds two vectors. | |
static | BaryCentric(Vector2, Vector2, Vector2, float, float)Interpolate 3 Vectors using Barycentric coordinates | |
static | BaryCentric(ref Vector2, ref Vector2, ref Vector2, float, float, out Vector2)Interpolate 3 Vectors using Barycentric coordinates | |
static | Clamp(Vector2, Vector2, Vector2)Clamp a vector to the given minimum and maximum vectors | |
static | Clamp(ref Vector2, ref Vector2, ref Vector2, out Vector2)Clamp a vector to the given minimum and maximum vectors | |
static | ComponentMax(Vector2, Vector2)Calculate the component-wise maximum of two vectors | |
static | ComponentMax(ref Vector2, ref Vector2, out Vector2)Calculate the component-wise maximum of two vectors | |
static | ComponentMin(Vector2, Vector2)Calculate the component-wise minimum of two vectors | |
static | ComponentMin(ref Vector2, ref Vector2, out Vector2)Calculate the component-wise minimum of two vectors | |
Div(float)Divide this instance by a scalar. | ||
static | Div(Vector2, float)Divide a vector by a scalar | |
static | Div(ref Vector2, float, out Vector2)Divide a vector by a scalar | |
static | Divide(Vector2, Vector2)Divides a vector by the components of a vector (scale). | |
static | Divide(Vector2, float)Divides a vector by a scalar. | |
static | Divide(ref Vector2, ref Vector2, out Vector2)Divide a vector by the components of a vector (scale). | |
static | Divide(ref Vector2, float, out Vector2)Divides a vector by a scalar. | |
static | Dot(Vector2, Vector2)Calculate the dot (scalar) product of two vectors | |
static | Dot(ref Vector2, ref Vector2, out float)Calculate the dot (scalar) product of two vectors | |
Equals(Vector2)Indicates whether the current vector is equal to another vector. | ||
override | Equals(object)Indicates whether this instance and a specified object are equal. | |
override | GetHashCode()Returns the hashcode for this instance. | |
static | Lerp(Vector2, Vector2, float)Returns a new Vector that is the linear blend of the 2 given Vectors | |
static | Lerp(ref Vector2, ref Vector2, float, out Vector2)Returns a new Vector that is the linear blend of the 2 given Vectors | |
static | Max(Vector2, Vector2)Returns the Vector3 with the minimum magnitude | |
static | Min(Vector2, Vector2)Returns the Vector3 with the minimum magnitude | |
Mult(float)Multiply this instance by a scalar. | ||
static | Mult(Vector2, float)Multiply a vector and a scalar | |
static | Mult(ref Vector2, float, out Vector2)Multiply a vector and a scalar | |
static | Multiply(Vector2, Vector2)Multiplies a vector by the components a vector (scale). | |
static | Multiply(Vector2, float)Multiplies a vector by a scalar. | |
static | Multiply(ref Vector2, ref Vector2, out Vector2)Multiplies a vector by the components of a vector (scale). | |
static | Multiply(ref Vector2, float, out Vector2)Multiplies a vector by a scalar. | |
Normalize()Scales the Vector2 to unit length. | ||
static | Normalize(Vector2)Scale a vector to unit length | |
static | Normalize(ref Vector2, out Vector2)Scale a vector to unit length | |
NormalizeFast()Scales the Vector2 to approximately unit length. | ||
static | NormalizeFast(Vector2)Scale a vector to approximately unit length | |
static | NormalizeFast(ref Vector2, out Vector2)Scale a vector to approximately unit length | |
Scale(Vector2)Scales this instance by the given parameter. | ||
Scale(ref Vector2)Scales this instance by the given parameter. | ||
Scale(float, float)Scales the current Vector2 by the given amounts. | ||
Sub(Vector2)Subtract the Vector passed as parameter from this instance. | ||
Sub(ref Vector2)Subtract the Vector passed as parameter from this instance. | ||
static | Sub(Vector2, Vector2)Subtract one Vector from another | |
static | Sub(ref Vector2, ref Vector2, out Vector2)Subtract one Vector from another | |
static | Subtract(Vector2, Vector2)Subtract one Vector from another | |
static | Subtract(ref Vector2, ref Vector2, out Vector2)Subtract one Vector from another | |
override | ToString()Returns a System.String that represents the current Vector2. | |
static | Transform(Vector2, Quaternion)Transforms a vector by a quaternion rotation. | |
static | Transform(ref Vector2, ref Quaternion, out Vector2)Transforms a vector by a quaternion rotation. | |
static | Addition(Vector2, Vector2) | Adds the specified instances. |
static | Division(Vector2, float) | Divides the specified instance by a scalar. |
static | Equality(Vector2, Vector2) | Compares the specified instances for equality. |
static | Inequality(Vector2, Vector2) | Compares the specified instances for inequality. |
static | Multiply(Vector2, float) | Multiplies the specified instance by a scalar. |
static | Multiply(float, Vector2) | Multiplies the specified instance by a scalar. |
static | Subtraction(Vector2, Vector2) | Subtracts the specified instances. |
static | UnaryNegation | Negates the specified instance. |