iOS Guides | Samples

OpenTK.Vector4d Structure

Represents a 4D vector using four double-precision floating-point numbers.

See Also: Vector4d

Syntax

public struct Vector4d : IEquatable<Vector4d>

Requirements

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

The members of OpenTK.Vector4d are listed below.

See Also: ValueType

Public Constructors

Constructs a new Vector4d from the given Vector2d.
Constructs a new Vector4d from the given Vector3d.
Constructs a new Vector4d from the given Vector4d.
Constructs a new Vector4d.

Public Fields

static readonly
OneVector4d. Defines an instance with all components set to 1.
static readonly
SizeInBytesInt32. Defines the size of the Vector4d struct in bytes.
static
UnitWVector4d. Defines a unit-length Vector4d that points towards the W-axis.
static
UnitXVector4d. Defines a unit-length Vector4d that points towards the X-axis.
static
UnitYVector4d. Defines a unit-length Vector4d that points towards the Y-axis.
static
UnitZVector4d. Defines a unit-length Vector4d that points towards the Z-axis.
WDouble. The Z component of the Vector4d.
XDouble. The X component of the Vector4d.
YDouble. The Y component of the Vector4d.
ZDouble. The Z component of the Vector4d.
static
ZeroVector4d. Defines a zero-length Vector4d.

Public Properties

[read-only]
LengthDouble. Gets the length (magnitude) of the vector.
[read-only]
LengthFastDouble. Gets an approximation of the vector length (magnitude).
[read-only]
LengthSquaredDouble. Gets the square of the vector length (magnitude).
XyVector2d. Gets or sets an OpenTK.Vector2d with the X and Y components of this instance.
XyzVector3d. Gets or sets an OpenTK.Vector3d with the X, Y and Z components of this instance.

Public Methods

Add(Vector4d)
Add the Vector passed as parameter to this instance.
Add(ref Vector4d)
Add the Vector passed as parameter to this instance.
static
Add(Vector4d, Vector4d) : Vector4d
static
Add(ref Vector4d, ref Vector4d, out Vector4d)
Add two Vectors
static
BaryCentric(Vector4d, Vector4d, Vector4d, Double, Double) : Vector4d
static
BaryCentric(ref Vector4d, ref Vector4d, ref Vector4d, Double, Double, out Vector4d)
static
Clamp(Vector4d, Vector4d, Vector4d) : Vector4d
static
Clamp(ref Vector4d, ref Vector4d, ref Vector4d, out Vector4d)
Clamp a vector to the given minimum and maximum vectors
Div(Double)
Divide this instance by a scalar.
static
Div(Vector4d, Double) : Vector4d
static
Div(ref Vector4d, Double, out Vector4d)
static
Divide(Vector4d, Vector4d) : Vector4d
static
Divide(Vector4d, Double) : Vector4d
static
Divide(ref Vector4d, ref Vector4d, out Vector4d)
static
Divide(ref Vector4d, Double, out Vector4d)
static
Dot(Vector4d, Vector4d) : Double
Calculate the dot product of two vectors
static
Dot(ref Vector4d, ref Vector4d, out Double)
Equals(Vector4d) : 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(Vector4d, Vector4d, Double) : Vector4d
static
Lerp(ref Vector4d, ref Vector4d, Double, out Vector4d)
static
Max(Vector4d, Vector4d) : Vector4d
static
Max(ref Vector4d, ref Vector4d, out Vector4d)
Calculate the component-wise maximum of two vectors
static
Min(Vector4d, Vector4d) : Vector4d
static
Min(ref Vector4d, ref Vector4d, out Vector4d)
Calculate the component-wise minimum of two vectors
Mult(Double)
Multiply this instance by a scalar.
static
Mult(Vector4d, Double) : Vector4d
static
Mult(ref Vector4d, Double, out Vector4d)
static
Multiply(Vector4d, Vector4d) : Vector4d
static
Multiply(Vector4d, Double) : Vector4d
static
Multiply(ref Vector4d, ref Vector4d, out Vector4d)
static
Multiply(ref Vector4d, Double, out Vector4d)
Normalize()
Scales the Vector4d to unit length.
static
Normalize(Vector4d) : Vector4d
static
Normalize(ref Vector4d, out Vector4d)
Scale a vector to unit length
NormalizeFast()
Scales the Vector4d to approximately unit length.
static
NormalizeFast(Vector4d) : Vector4d
static
NormalizeFast(ref Vector4d, out Vector4d)
Scale a vector to approximately unit length
Scale(Vector4d)
Scales this instance by the given parameter.
Scale(ref Vector4d)
Scales this instance by the given parameter.
Scale(Double, Double, Double, Double)
Scales the current Vector4d by the given amounts.
Sub(Vector4d)
Subtract the Vector passed as parameter from this instance.
Sub(ref Vector4d)
Subtract the Vector passed as parameter from this instance.
static
Sub(Vector4d, Vector4d) : Vector4d
static
Sub(ref Vector4d, ref Vector4d, out Vector4d)
Subtract one Vector from another
static
Subtract(Vector4d, Vector4d) : Vector4d
static
Subtract(ref Vector4d, ref Vector4d, out Vector4d)
override
ToString() : String
Returns a System.String that represents the current Vector4d.
static
Transform(Vector4d, Matrix4d) : Vector4d
static
Transform(Vector4d, Quaterniond) : Vector4d
static
Transform(ref Vector4d, ref Matrix4d, out Vector4d)
Transform a Vector by the given Matrix
static
Transform(ref Vector4d, ref Quaterniond, out Vector4d)

Public Operators