OpenTK.Vector3 Members

The members of OpenTK.Vector3 are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Constructs a new Vector3 from the given Vector2.
Constructs a new Vector3 from the given Vector3.
Constructs a new Vector3 from the given Vector4.
Documentation for this section has not yet been entered.
Constructs a new Vector3.

Public Fields

static readonly
OneVector3. Defines an instance with all components set to 1.
static readonly
SizeInBytesint. Defines the size of the Vector3 struct in bytes.
static readonly
UnitXVector3. Defines a unit-length Vector3 that points towards the X-axis.
static readonly
UnitYVector3. Defines a unit-length Vector3 that points towards the Y-axis.
static readonly
UnitZVector3. /// Defines a unit-length Vector3 that points towards the Z-axis.
Xfloat. The X component of the Vector3.
Yfloat. The Y component of the Vector3.
Zfloat. The Z component of the Vector3.
static readonly
ZeroVector3. Defines a zero-length Vector3.

Public Properties

[read-only]
Lengthfloat. Gets the length (magnitude) of the vector.
[read-only]
LengthFastfloat. Gets an approximation of the vector length (magnitude).
[read-only]
LengthSquaredfloat. Gets the square of the vector length (magnitude).
XyVector2. Gets or sets an OpenTK.Vector2 with the X and Y components of this instance.

Public Methods

Add(Vector3)
Add the Vector passed as parameter to this instance.
Add(ref Vector3)
Add the Vector passed as parameter to this instance.
static
Add(ref Vector3, ref Vector3, out Vector3)
Add two Vectors
static
BaryCentric(float, float, ref Vector3, ref Vector3, ref Vector3, out Vector3)
Interpolate 3 Vectors using Barycentric coordinates
static
CalculateAngle(Vector3, Vector3) : float
Calculates the angle (in radians) between two vectors.
static
CalculateAngle(out float, ref Vector3, ref Vector3)
Calculates the angle (in radians) between two vectors.
static
Clamp(ref Vector3, ref Vector3, ref Vector3, out Vector3)
Clamp a vector to the given minimum and maximum vectors
static
ComponentMax(ref Vector3, ref Vector3, out Vector3)
Calculate the component-wise maximum of two vectors
static
ComponentMin(ref Vector3, ref Vector3, out Vector3)
Calculate the component-wise minimum of two vectors
static
Cross(ref Vector3, ref Vector3, out Vector3)
Caclulate the cross (vector) product of two vectors
Div(float)
Divide this instance by a scalar.
static
Div(float, ref Vector3, out Vector3)
Divide a vector by a scalar
static
Divide(ref Vector3, ref Vector3, out Vector3)
Documentation for this section has not yet been entered.
static
Divide(float, ref Vector3, out Vector3)
Documentation for this section has not yet been entered.
static
Dot(Vector3, Vector3) : float
Calculate the dot (scalar) product of two vectors
static
Dot(out float, ref Vector3, ref Vector3)
Calculate the dot (scalar) product of two vectors
Equals(Vector3) : bool
Indicates whether the current vector is equal to another vector.
override
Equals(object) : bool
Indicates whether this instance and a specified object are equal.
override
GetHashCode() : int
Returns the hashcode for this instance.
static
Lerp(float, ref Vector3, ref Vector3, out Vector3)
Returns a new Vector that is the linear blend of the 2 given Vectors
Mult(float)
Multiply this instance by a scalar.
static
Mult(float, ref Vector3, out Vector3)
Multiply a vector and a scalar
static
Multiply(ref Vector3, ref Vector3, out Vector3)
Documentation for this section has not yet been entered.
static
Multiply(float, ref Vector3, out Vector3)
Documentation for this section has not yet been entered.
Normalize()
Scales the Vector3 to unit length.
static
Normalize(ref Vector3, out Vector3)
Scale a vector to unit length
NormalizeFast()
Scales the Vector3 to approximately unit length.
static
NormalizeFast(ref Vector3, out Vector3)
Scale a vector to approximately unit length
Scale(Vector3)
Scales this instance by the given parameter.
Scale(ref Vector3)
Scales this instance by the given parameter.
Scale(float, float, float)
Scales the current Vector3 by the given amounts.
Sub(Vector3)
Subtract the Vector passed as parameter from this instance.
Sub(ref Vector3)
Subtract the Vector passed as parameter from this instance.
static
Sub(ref Vector3, ref Vector3, out Vector3)
Subtract one Vector from another
static
Subtract(ref Vector3, ref Vector3, out Vector3)
Documentation for this section has not yet been entered.
override
ToString() : string
Returns a System.String that represents the current Vector3.
static
Transform(ref Vector3, ref Matrix4, out Vector3)
Documentation for this section has not yet been entered.
static
Transform(ref Vector3, ref Matrix4, out Vector4)
Transform a Vector by the given Matrix
static
Transform(ref Vector3, ref Quaternion, out Vector3)
Documentation for this section has not yet been entered.
static
TransformNormal(ref Vector3, ref Matrix4, out Vector3)
Transform a Normal by the given Matrix
static
TransformNormalInverse(ref Vector3, ref Matrix4, out Vector3)
Transform a Normal by the (transpose of the) given Matrix
static
TransformPerspective(ref Vector3, ref Matrix4, out Vector3)
Transform a Vector3 by the given Matrix, and project the resulting Vector4 back to a Vector3
static
TransformPosition(ref Vector3, ref Matrix4, out Vector3)
Transform a Position by the given Matrix
static
TransformVector(ref Vector3, ref Matrix4, out Vector3)
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

static
Equality(Vector3, Vector3)Documentation for this section has not yet been entered.
static
Inequality(Vector3, Vector3)Documentation for this section has not yet been entered.