iOS Guides | Samples

OpenTK.Vector2d Structure

Represents a 2D vector using two double-precision floating-point numbers.

See Also: Vector2d

Syntax

public struct Vector2d : IEquatable<Vector2d>

Requirements

Namespace: OpenTK
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of OpenTK.Vector2d are listed below.

See Also: ValueType

Public Constructors

Constructs left vector with the given coordinates.

Public Fields

static readonly
OneVector2d. Defines an instance with all components set to 1.
static readonly
SizeInBytesInt32. Defines the size of the Vector2d struct in bytes.
static
UnitXVector2d. Defines a unit-length Vector2d that points towards the X-axis.
static
UnitYVector2d. Defines a unit-length Vector2d that points towards the Y-axis.
XDouble. The X coordinate of this instance.
YDouble. The Y coordinate of this instance.
static
ZeroVector2d. Defines a zero-length Vector2d.

Public Properties

[read-only]
LengthDouble. Gets the length (magnitude) of the vector.
[read-only]
LengthSquaredDouble. Gets the square of the vector length (magnitude).
[read-only]
PerpendicularLeftVector2d. Gets the perpendicular vector on the left side of this vector.
[read-only]
PerpendicularRightVector2d. Gets the perpendicular vector on the right side of this vector.

Public Methods

Add(Vector2d)
Add the Vector passed as parameter to this instance.
Add(ref Vector2d)
Add the Vector passed as parameter to this instance.
static
Add(Vector2d, Vector2d) : Vector2d
static
Add(ref Vector2d, ref Vector2d, out Vector2d)
Add two Vectors
static
BaryCentric(Vector2d, Vector2d, Vector2d, Double, Double) : Vector2d
static
BaryCentric(ref Vector2d, ref Vector2d, ref Vector2d, Double, Double, out Vector2d)
static
Clamp(Vector2d, Vector2d, Vector2d) : Vector2d
static
Clamp(ref Vector2d, ref Vector2d, ref Vector2d, out Vector2d)
Clamp a vector to the given minimum and maximum vectors
Div(Double)
Divide this instance by a scalar.
static
Div(Vector2d, Double) : Vector2d
static
Div(ref Vector2d, Double, out Vector2d)
static
Divide(Vector2d, Vector2d) : Vector2d
static
Divide(Vector2d, Double) : Vector2d
static
Divide(ref Vector2d, ref Vector2d, out Vector2d)
static
Divide(ref Vector2d, Double, out Vector2d)
static
Dot(Vector2d, Vector2d) : Double
Calculate the dot (scalar) product of two vectors
static
Dot(ref Vector2d, ref Vector2d, out Double)
Equals(Vector2d) : Boolean
Indicates whether the current vector is equal to another vector.
override
Equals(Object) : Boolean
Indicates whether this instance and a specified object are equal.
override
GetHashCode() : Int32
Returns the hashcode for this instance.
static
Lerp(Vector2d, Vector2d, Double) : Vector2d
static
Lerp(ref Vector2d, ref Vector2d, Double, out Vector2d)
static
Max(Vector2d, Vector2d) : Vector2d
static
Max(ref Vector2d, ref Vector2d, out Vector2d)
Calculate the component-wise maximum of two vectors
static
Min(Vector2d, Vector2d) : Vector2d
static
Min(ref Vector2d, ref Vector2d, out Vector2d)
Calculate the component-wise minimum of two vectors
Mult(Double)
Multiply this instance by a scalar.
static
Mult(Vector2d, Double) : Vector2d
static
Mult(ref Vector2d, Double, out Vector2d)
static
Multiply(Vector2d, Vector2d) : Vector2d
static
Multiply(Vector2d, Double) : Vector2d
static
Multiply(ref Vector2d, ref Vector2d, out Vector2d)
static
Multiply(ref Vector2d, Double, out Vector2d)
Normalize()
Scales the Vector2 to unit length.
static
Normalize(Vector2d) : Vector2d
static
Normalize(ref Vector2d, out Vector2d)
Scale a vector to unit length
static
NormalizeFast(Vector2d) : Vector2d
static
NormalizeFast(ref Vector2d, out Vector2d)
Scale a vector to approximately unit length
Scale(Vector2d)
Scales this instance by the given parameter.
Scale(ref Vector2d)
Scales this instance by the given parameter.
Scale(Double, Double)
Scales the current Vector2 by the given amounts.
Sub(Vector2d)
Subtract the Vector passed as parameter from this instance.
Sub(ref Vector2d)
Subtract the Vector passed as parameter from this instance.
static
Sub(Vector2d, Vector2d) : Vector2d
static
Sub(ref Vector2d, ref Vector2d, out Vector2d)
Subtract one Vector from another
static
Subtract(Vector2d, Vector2d) : Vector2d
static
Subtract(ref Vector2d, ref Vector2d, out Vector2d)
override
ToString() : String
Returns a System.String that represents the current instance.
static
Transform(Vector2d, Quaterniond) : Vector2d
static
Transform(ref Vector2d, ref Quaterniond, out Vector2d)

Public Operators

static
Addition(Vector2d, Vector2d)
static
Division(Vector2d, Double)
static
Equality(Vector2d, Vector2d) Compares two instances for equality.
static
Inequality(Vector2d, Vector2d) Compares two instances for ienquality.
static
Multiply(Vector2d, Double)
static
Multiply(Double, Vector2d)
static
Subtraction(Vector2d, Vector2d)
static
UnaryNegation
static
Conversion to OpenTK.Vector2d(Explicit)
static
Conversion to OpenTK.Vector2(Explicit)