Mac Guides | Samples

MonoMac.OpenGL.Vector4d Structure

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

See Also: Vector4d

Syntax

public struct Vector4d : IEquatable<Vector4d>

Requirements

Namespace: MonoMac.OpenGL
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0

The members of MonoMac.OpenGL.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. The w component is initialized to 0.
Constructs a new Vector4d from the given Vector4d.
Constructs a new instance.
Constructs a new Vector4d from the specified Vector3d and w component.
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 W 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
Adds two vectors.
static
Add(ref Vector4d, ref Vector4d, out Vector4d)
Adds two vectors.
static
BaryCentric(Vector4d, Vector4d, Vector4d, Double, Double) : Vector4d
Interpolate 3 Vectors using Barycentric coordinates
static
BaryCentric(ref Vector4d, ref Vector4d, ref Vector4d, Double, Double, out Vector4d)
Interpolate 3 Vectors using Barycentric coordinates
static
Clamp(Vector4d, Vector4d, Vector4d) : Vector4d
Clamp a vector to the given minimum and maximum vectors
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
Divide a vector by a scalar
static
Div(ref Vector4d, Double, out Vector4d)
Divide a vector by a scalar
static
Divide(Vector4d, Vector4d) : Vector4d
Divides a vector by the components of a vector (scale).
static
Divide(Vector4d, Double) : Vector4d
Divides a vector by a scalar.
static
Divide(ref Vector4d, ref Vector4d, out Vector4d)
Divide a vector by the components of a vector (scale).
static
Divide(ref Vector4d, Double, out Vector4d)
Divides a vector by a scalar.
static
Dot(Vector4d, Vector4d) : Double
Calculate the dot product of two vectors
static
Dot(ref Vector4d, ref Vector4d, out Double)
Calculate the dot product of two vectors
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
Returns a new Vector that is the linear blend of the 2 given Vectors
static
Lerp(ref Vector4d, ref Vector4d, Double, out Vector4d)
Returns a new Vector that is the linear blend of the 2 given Vectors
static
Max(Vector4d, Vector4d) : Vector4d
Calculate the component-wise maximum of two vectors
static
Max(ref Vector4d, ref Vector4d, out Vector4d)
Calculate the component-wise maximum of two vectors
static
Min(Vector4d, Vector4d) : Vector4d
Calculate the component-wise minimum of two vectors
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
Multiply a vector and a scalar
static
Mult(ref Vector4d, Double, out Vector4d)
Multiply a vector and a scalar
static
Multiply(Vector4d, Vector4d) : Vector4d
Multiplies a vector by the components a vector (scale).
static
Multiply(Vector4d, Double) : Vector4d
Multiplies a vector by a scalar.
static
Multiply(ref Vector4d, ref Vector4d, out Vector4d)
Multiplies a vector by the components of a vector (scale).
static
Multiply(ref Vector4d, Double, out Vector4d)
Multiplies a vector by a scalar.
Normalize()
Scales the Vector4d to unit length.
static
Normalize(Vector4d) : Vector4d
Scale a vector to unit length
static
Normalize(ref Vector4d, out Vector4d)
Scale a vector to unit length
NormalizeFast()
Scales the Vector4d to approximately unit length.
static
NormalizeFast(Vector4d) : Vector4d
Scale a vector to approximately unit length
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
Subtract one Vector from another
static
Sub(ref Vector4d, ref Vector4d, out Vector4d)
Subtract one Vector from another
static
Subtract(Vector4d, Vector4d) : Vector4d
Subtract one Vector from another
static
Subtract(ref Vector4d, ref Vector4d, out Vector4d)
Subtract one Vector from another
override
ToString() : String
Returns a System.String that represents the current Vector4d.
static
Transform(Vector4d, Matrix4d) : Vector4d
Transform a Vector by the given Matrix
static
Transform(Vector4d, Quaterniond) : Vector4d
Transforms a vector by a quaternion rotation.
static
Transform(ref Vector4d, ref Matrix4d, out Vector4d)
Transform a Vector by the given Matrix
static
Transform(ref Vector4d, ref Quaterniond, out Vector4d)
Transforms a vector by a quaternion rotation.

Public Operators

static
Addition(Vector4d, Vector4d) Adds two instances.
static
Division(Vector4d, Double) Divides an instance by a scalar.
static
Equality(Vector4d, Vector4d) Compares two instances for equality.
static
Inequality(Vector4d, Vector4d) Compares two instances for inequality.
static
Multiply(Vector4d, Double) Multiplies an instance by a scalar.
static
Multiply(Double, Vector4d) Multiplies an instance by a scalar.
static
Subtraction(Vector4d, Vector4d) Subtracts two instances.
static
UnaryNegation Negates an instance.
static
Conversion to MonoMac.OpenGL.Vector4d(Explicit)Converts OpenTK.Vector4 to OpenTK.Vector4d.
static
Conversion to MonoMac.OpenGL.Vector4(Explicit)Converts OpenTK.Vector4d to OpenTK.Vector4.
static
Conversion to System.Double*(Explicit) Returns a pointer to the first element of the specified instance.
static
Conversion to System.IntPtr(Explicit) Returns a pointer to the first element of the specified instance.