iOS Guides | Samples

OpenTK.Vector3d Structure

Represents a 3D vector using three double-precision floating-point numbers.

See Also: Vector3d

Syntax

public struct Vector3d : IEquatable<Vector3d>

Requirements

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

The members of OpenTK.Vector3d are listed below.

See Also: ValueType

Public Constructors

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

Public Fields

static readonly
OneVector3d. Defines an instance with all components set to 1.
static readonly
SizeInBytesInt32. Defines the size of the Vector3d struct in bytes.
static readonly
UnitXVector3d. Defines a unit-length Vector3d that points towards the X-axis.
static readonly
UnitYVector3d. Defines a unit-length Vector3d that points towards the Y-axis.
static readonly
UnitZVector3d. /// Defines a unit-length Vector3d that points towards the Z-axis.
XDouble. The X component of the Vector3.
YDouble. The Y component of the Vector3.
ZDouble. The Z component of the Vector3.
static readonly
ZeroVector3d. Defines a zero-length Vector3.

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.

Public Methods

Add(Vector3d)
Add the Vector passed as parameter to this instance.
Add(ref Vector3d)
Add the Vector passed as parameter to this instance.
static
Add(Vector3d, Vector3d) : Vector3d
static
Add(ref Vector3d, ref Vector3d, out Vector3d)
Add two Vectors
static
BaryCentric(Vector3d, Vector3d, Vector3d, Double, Double) : Vector3d
static
BaryCentric(ref Vector3d, ref Vector3d, ref Vector3d, Double, Double, out Vector3d)
static
CalculateAngle(Vector3d, Vector3d) : Double
Calculates the angle (in radians) between two vectors.
static
CalculateAngle(ref Vector3d, ref Vector3d, out Double)
static
Clamp(Vector3d, Vector3d, Vector3d) : Vector3d
static
Clamp(ref Vector3d, ref Vector3d, ref Vector3d, out Vector3d)
Clamp a vector to the given minimum and maximum vectors
static
ComponentMax(Vector3d, Vector3d) : Vector3d
static
ComponentMax(ref Vector3d, ref Vector3d, out Vector3d)
Calculate the component-wise maximum of two vectors
static
ComponentMin(Vector3d, Vector3d) : Vector3d
static
ComponentMin(ref Vector3d, ref Vector3d, out Vector3d)
Calculate the component-wise minimum of two vectors
static
Cross(Vector3d, Vector3d) : Vector3d
static
Cross(ref Vector3d, ref Vector3d, out Vector3d)
Caclulate the cross (vector) product of two vectors
Div(Double)
Divide this instance by a scalar.
static
Div(Vector3d, Double) : Vector3d
static
Div(ref Vector3d, Double, out Vector3d)
static
Divide(Vector3d, Vector3d) : Vector3d
static
Divide(Vector3d, Double) : Vector3d
static
Divide(ref Vector3d, ref Vector3d, out Vector3d)
static
Divide(ref Vector3d, Double, out Vector3d)
static
Dot(Vector3d, Vector3d) : Double
Calculate the dot (scalar) product of two vectors
static
Dot(ref Vector3d, ref Vector3d, out Double)
Equals(Vector3d) : 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(Vector3d, Vector3d, Double) : Vector3d
static
Lerp(ref Vector3d, ref Vector3d, Double, out Vector3d)
static
Max(Vector3d, Vector3d) : Vector3d
static
Min(Vector3d, Vector3d) : Vector3d
Mult(Double)
Multiply this instance by a scalar.
static
Mult(Vector3d, Double) : Vector3d
static
Mult(ref Vector3d, Double, out Vector3d)
static
Multiply(Vector3d, Vector3d) : Vector3d
static
Multiply(Vector3d, Double) : Vector3d
static
Multiply(ref Vector3d, ref Vector3d, out Vector3d)
static
Multiply(ref Vector3d, Double, out Vector3d)
Normalize()
Scales the Vector3d to unit length.
static
Normalize(Vector3d) : Vector3d
static
Normalize(ref Vector3d, out Vector3d)
Scale a vector to unit length
NormalizeFast()
Scales the Vector3d to approximately unit length.
static
NormalizeFast(Vector3d) : Vector3d
static
NormalizeFast(ref Vector3d, out Vector3d)
Scale a vector to approximately unit length
Scale(Vector3d)
Scales this instance by the given parameter.
Scale(ref Vector3d)
Scales this instance by the given parameter.
Scale(Double, Double, Double)
Scales the current Vector3d by the given amounts.
Sub(Vector3d)
Subtract the Vector passed as parameter from this instance.
Sub(ref Vector3d)
Subtract the Vector passed as parameter from this instance.
static
Sub(Vector3d, Vector3d) : Vector3d
static
Sub(ref Vector3d, ref Vector3d, out Vector3d)
Subtract one Vector from another
static
Subtract(Vector3d, Vector3d) : Vector3d
static
Subtract(ref Vector3d, ref Vector3d, out Vector3d)
override
ToString() : String
Returns a System.String that represents the current Vector3.
static
Transform(Vector3d, Matrix4d) : Vector3d
static
Transform(Vector3d, Quaterniond) : Vector3d
static
Transform(ref Vector3d, ref Matrix4d, out Vector3d)
static
Transform(ref Vector3d, ref Matrix4d, out Vector4d)
Transform a Vector by the given Matrix
static
Transform(ref Vector3d, ref Quaterniond, out Vector3d)
static
TransformNormal(Vector3d, Matrix4d) : Vector3d
static
TransformNormal(ref Vector3d, ref Matrix4d, out Vector3d)
Transform a Normal by the given Matrix
static
TransformNormalInverse(Vector3d, Matrix4d) : Vector3d
static
TransformNormalInverse(ref Vector3d, ref Matrix4d, out Vector3d)
Transform a Normal by the (transpose of the) given Matrix
static
TransformPerspective(Vector3d, Matrix4d) : Vector3d
static
TransformPerspective(ref Vector3d, ref Matrix4d, out Vector3d)
Transform a Vector3d by the given Matrix, and project the resulting Vector4d back to a Vector3d
static
TransformPosition(Vector3d, Matrix4d) : Vector3d
static
TransformPosition(ref Vector3d, ref Matrix4d, out Vector3d)
Transform a Position by the given Matrix
static
TransformVector(Vector3d, Matrix4d) : Vector3d
static
TransformVector(ref Vector3d, ref Matrix4d, out Vector3d)
Transform a direction vector by the given Matrix Assumes the matrix has a bottom row of (0,0,0,1), that is the translation part is ignored.

Public Operators