The members of OpenTK.Vector3 are listed below.
See Also: Inherited members from System.ValueType
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. |
static readonly | One | Vector3. Defines an instance with all components set to 1. |
static readonly | SizeInBytes | int. Defines the size of the Vector3 struct in bytes. |
static readonly | UnitX | Vector3. Defines a unit-length Vector3 that points towards the X-axis. |
static readonly | UnitY | Vector3. Defines a unit-length Vector3 that points towards the Y-axis. |
static readonly | UnitZ | Vector3. /// Defines a unit-length Vector3 that points towards the Z-axis. |
X | float. The X component of the Vector3. | |
Y | float. The Y component of the Vector3. | |
Z | float. The Z component of the Vector3. | |
static readonly | Zero | Vector3. Defines a zero-length Vector3. |
[read-only] | Length | float. Gets the length (magnitude) of the vector. |
[read-only] | LengthFast | float. Gets an approximation of the vector length (magnitude). |
[read-only] | LengthSquared | float. Gets the square of the vector length (magnitude). |
Xy | Vector2. Gets or sets an OpenTK.Vector2 with the X and Y components of this instance. |
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)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)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)Indicates whether the current vector is equal to another vector. | ||
override | Equals(object)Indicates whether this instance and a specified object are equal. | |
override | GetHashCode()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()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. |