The Open Toolkit library
1.0
|
Represents a 4D vector using four single-precision floating-point numbers. More...
Inherits IEquatable< Vector4 >.
Public Member Functions | |
Vector4 (float value) | |
Constructs a new instance. More... | |
Vector4 (float x, float y, float z, float w) | |
Constructs a new Vector4. More... | |
Vector4 (Vector2 v) | |
Constructs a new Vector4 from the given Vector2. More... | |
Vector4 (Vector3 v) | |
Constructs a new Vector4 from the given Vector3. The w component is initialized to 0. More... | |
Vector4 (Vector3 v, float w) | |
Constructs a new Vector4 from the specified Vector3 and w component. More... | |
Vector4 (Vector4 v) | |
Constructs a new Vector4 from the given Vector4. More... | |
void | Add (Vector4 right) |
Add the Vector passed as parameter to this instance. More... | |
void | Add (ref Vector4 right) |
Add the Vector passed as parameter to this instance. More... | |
void | Sub (Vector4 right) |
Subtract the Vector passed as parameter from this instance. More... | |
void | Sub (ref Vector4 right) |
Subtract the Vector passed as parameter from this instance. More... | |
void | Mult (float f) |
Multiply this instance by a scalar. More... | |
void | Div (float f) |
Divide this instance by a scalar. More... | |
Vector4 | Normalized () |
Returns a copy of the Vector4 scaled to unit length. More... | |
void | Normalize () |
Scales the Vector4 to unit length. More... | |
void | NormalizeFast () |
Scales the Vector4 to approximately unit length. More... | |
void | Scale (float sx, float sy, float sz, float sw) |
Scales the current Vector4 by the given amounts. More... | |
void | Scale (Vector4 scale) |
Scales this instance by the given parameter. More... | |
void | Scale (ref Vector4 scale) |
Scales this instance by the given parameter. More... | |
override string | ToString () |
Returns a System.String that represents the current Vector4. More... | |
override int | GetHashCode () |
Returns the hashcode for this instance. More... | |
override bool | Equals (object obj) |
Indicates whether this instance and a specified object are equal. More... | |
bool | Equals (Vector4 other) |
Indicates whether the current vector is equal to another vector. More... | |
Static Public Member Functions | |
static Vector4 | Sub (Vector4 a, Vector4 b) |
Subtract one Vector from another More... | |
static void | Sub (ref Vector4 a, ref Vector4 b, out Vector4 result) |
Subtract one Vector from another More... | |
static Vector4 | Mult (Vector4 a, float f) |
Multiply a vector and a scalar More... | |
static void | Mult (ref Vector4 a, float f, out Vector4 result) |
Multiply a vector and a scalar More... | |
static Vector4 | Div (Vector4 a, float f) |
Divide a vector by a scalar More... | |
static void | Div (ref Vector4 a, float f, out Vector4 result) |
Divide a vector by a scalar More... | |
static Vector4 | Add (Vector4 a, Vector4 b) |
Adds two vectors. More... | |
static void | Add (ref Vector4 a, ref Vector4 b, out Vector4 result) |
Adds two vectors. More... | |
static Vector4 | Subtract (Vector4 a, Vector4 b) |
Subtract one Vector from another More... | |
static void | Subtract (ref Vector4 a, ref Vector4 b, out Vector4 result) |
Subtract one Vector from another More... | |
static Vector4 | Multiply (Vector4 vector, float scale) |
Multiplies a vector by a scalar. More... | |
static void | Multiply (ref Vector4 vector, float scale, out Vector4 result) |
Multiplies a vector by a scalar. More... | |
static Vector4 | Multiply (Vector4 vector, Vector4 scale) |
Multiplies a vector by the components a vector (scale). More... | |
static void | Multiply (ref Vector4 vector, ref Vector4 scale, out Vector4 result) |
Multiplies a vector by the components of a vector (scale). More... | |
static Vector4 | Divide (Vector4 vector, float scale) |
Divides a vector by a scalar. More... | |
static void | Divide (ref Vector4 vector, float scale, out Vector4 result) |
Divides a vector by a scalar. More... | |
static Vector4 | Divide (Vector4 vector, Vector4 scale) |
Divides a vector by the components of a vector (scale). More... | |
static void | Divide (ref Vector4 vector, ref Vector4 scale, out Vector4 result) |
Divide a vector by the components of a vector (scale). More... | |
static Vector4 | Min (Vector4 a, Vector4 b) |
Calculate the component-wise minimum of two vectors More... | |
static void | Min (ref Vector4 a, ref Vector4 b, out Vector4 result) |
Calculate the component-wise minimum of two vectors More... | |
static Vector4 | Max (Vector4 a, Vector4 b) |
Calculate the component-wise maximum of two vectors More... | |
static void | Max (ref Vector4 a, ref Vector4 b, out Vector4 result) |
Calculate the component-wise maximum of two vectors More... | |
static Vector4 | Clamp (Vector4 vec, Vector4 min, Vector4 max) |
Clamp a vector to the given minimum and maximum vectors More... | |
static void | Clamp (ref Vector4 vec, ref Vector4 min, ref Vector4 max, out Vector4 result) |
Clamp a vector to the given minimum and maximum vectors More... | |
static Vector4 | Normalize (Vector4 vec) |
Scale a vector to unit length More... | |
static void | Normalize (ref Vector4 vec, out Vector4 result) |
Scale a vector to unit length More... | |
static Vector4 | NormalizeFast (Vector4 vec) |
Scale a vector to approximately unit length More... | |
static void | NormalizeFast (ref Vector4 vec, out Vector4 result) |
Scale a vector to approximately unit length More... | |
static float | Dot (Vector4 left, Vector4 right) |
Calculate the dot product of two vectors More... | |
static void | Dot (ref Vector4 left, ref Vector4 right, out float result) |
Calculate the dot product of two vectors More... | |
static Vector4 | Lerp (Vector4 a, Vector4 b, float blend) |
Returns a new Vector that is the linear blend of the 2 given Vectors More... | |
static void | Lerp (ref Vector4 a, ref Vector4 b, float blend, out Vector4 result) |
Returns a new Vector that is the linear blend of the 2 given Vectors More... | |
static Vector4 | BaryCentric (Vector4 a, Vector4 b, Vector4 c, float u, float v) |
Interpolate 3 Vectors using Barycentric coordinates More... | |
static void | BaryCentric (ref Vector4 a, ref Vector4 b, ref Vector4 c, float u, float v, out Vector4 result) |
Interpolate 3 Vectors using Barycentric coordinates More... | |
static Vector4 | Transform (Vector4 vec, Matrix4 mat) |
Transform a Vector by the given Matrix More... | |
static void | Transform (ref Vector4 vec, ref Matrix4 mat, out Vector4 result) |
Transform a Vector by the given Matrix More... | |
static Vector4 | Transform (Vector4 vec, Quaternion quat) |
Transforms a vector by a quaternion rotation. More... | |
static void | Transform (ref Vector4 vec, ref Quaternion quat, out Vector4 result) |
Transforms a vector by a quaternion rotation. More... | |
static Vector4 | operator+ (Vector4 left, Vector4 right) |
Adds two instances. More... | |
static Vector4 | operator- (Vector4 left, Vector4 right) |
Subtracts two instances. More... | |
static Vector4 | operator- (Vector4 vec) |
Negates an instance. More... | |
static Vector4 | operator* (Vector4 vec, float scale) |
Multiplies an instance by a scalar. More... | |
static Vector4 | operator* (float scale, Vector4 vec) |
Multiplies an instance by a scalar. More... | |
static Vector4 | operator/ (Vector4 vec, float scale) |
Divides an instance by a scalar. More... | |
static bool | operator== (Vector4 left, Vector4 right) |
Compares two instances for equality. More... | |
static bool | operator!= (Vector4 left, Vector4 right) |
Compares two instances for inequality. More... | |
unsafe static | operator float * (Vector4 v) |
Returns a pointer to the first element of the specified instance. More... | |
static | operator IntPtr (Vector4 v) |
Returns a pointer to the first element of the specified instance. More... | |
Public Attributes | |
float | X |
The X component of the Vector4. More... | |
float | Y |
The Y component of the Vector4. More... | |
float | Z |
The Z component of the Vector4. More... | |
float | W |
The W component of the Vector4. More... | |
Static Public Attributes | |
static readonly Vector4 | UnitX = new Vector4(1, 0, 0, 0) |
Defines a unit-length Vector4 that points towards the X-axis. More... | |
static readonly Vector4 | UnitY = new Vector4(0, 1, 0, 0) |
Defines a unit-length Vector4 that points towards the Y-axis. More... | |
static readonly Vector4 | UnitZ = new Vector4(0, 0, 1, 0) |
Defines a unit-length Vector4 that points towards the Z-axis. More... | |
static readonly Vector4 | UnitW = new Vector4(0, 0, 0, 1) |
Defines a unit-length Vector4 that points towards the W-axis. More... | |
static readonly Vector4 | Zero = new Vector4(0, 0, 0, 0) |
Defines a zero-length Vector4. More... | |
static readonly Vector4 | One = new Vector4(1, 1, 1, 1) |
Defines an instance with all components set to 1. More... | |
static readonly int | SizeInBytes = Marshal.SizeOf(new Vector4()) |
Defines the size of the Vector4 struct in bytes. More... | |
Properties | |
float | this[int index] [get, set] |
Gets or sets the value at the index of the Vector. More... | |
float | Length [get] |
Gets the length (magnitude) of the vector. More... | |
float | LengthFast [get] |
Gets an approximation of the vector length (magnitude). More... | |
float | LengthSquared [get] |
Gets the square of the vector length (magnitude). More... | |
Vector2 | Xy [get, set] |
Gets or sets an OpenTK.Vector2 with the X and Y components of this instance. More... | |
Vector2 | Xz [get, set] |
Gets or sets an OpenTK.Vector2 with the X and Z components of this instance. More... | |
Vector2 | Xw [get, set] |
Gets or sets an OpenTK.Vector2 with the X and W components of this instance. More... | |
Vector2 | Yx [get, set] |
Gets or sets an OpenTK.Vector2 with the Y and X components of this instance. More... | |
Vector2 | Yz [get, set] |
Gets or sets an OpenTK.Vector2 with the Y and Z components of this instance. More... | |
Vector2 | Yw [get, set] |
Gets or sets an OpenTK.Vector2 with the Y and W components of this instance. More... | |
Vector2 | Zx [get, set] |
Gets or sets an OpenTK.Vector2 with the Z and X components of this instance. More... | |
Vector2 | Zy [get, set] |
Gets or sets an OpenTK.Vector2 with the Z and Y components of this instance. More... | |
Vector2 | Zw [get, set] |
Gets an OpenTK.Vector2 with the Z and W components of this instance. More... | |
Vector2 | Wx [get, set] |
Gets or sets an OpenTK.Vector2 with the W and X components of this instance. More... | |
Vector2 | Wy [get, set] |
Gets or sets an OpenTK.Vector2 with the W and Y components of this instance. More... | |
Vector2 | Wz [get, set] |
Gets or sets an OpenTK.Vector2 with the W and Z components of this instance. More... | |
Vector3 | Xyz [get, set] |
Gets or sets an OpenTK.Vector3 with the X, Y, and Z components of this instance. More... | |
Vector3 | Xyw [get, set] |
Gets or sets an OpenTK.Vector3 with the X, Y, and Z components of this instance. More... | |
Vector3 | Xzy [get, set] |
Gets or sets an OpenTK.Vector3 with the X, Z, and Y components of this instance. More... | |
Vector3 | Xzw [get, set] |
Gets or sets an OpenTK.Vector3 with the X, Z, and W components of this instance. More... | |
Vector3 | Xwy [get, set] |
Gets or sets an OpenTK.Vector3 with the X, W, and Y components of this instance. More... | |
Vector3 | Xwz [get, set] |
Gets or sets an OpenTK.Vector3 with the X, W, and Z components of this instance. More... | |
Vector3 | Yxz [get, set] |
Gets or sets an OpenTK.Vector3 with the Y, X, and Z components of this instance. More... | |
Vector3 | Yxw [get, set] |
Gets or sets an OpenTK.Vector3 with the Y, X, and W components of this instance. More... | |
Vector3 | Yzx [get, set] |
Gets or sets an OpenTK.Vector3 with the Y, Z, and X components of this instance. More... | |
Vector3 | Yzw [get, set] |
Gets or sets an OpenTK.Vector3 with the Y, Z, and W components of this instance. More... | |
Vector3 | Ywx [get, set] |
Gets or sets an OpenTK.Vector3 with the Y, W, and X components of this instance. More... | |
Vector3 | Ywz [get, set] |
Gets an OpenTK.Vector3 with the Y, W, and Z components of this instance. More... | |
Vector3 | Zxy [get, set] |
Gets or sets an OpenTK.Vector3 with the Z, X, and Y components of this instance. More... | |
Vector3 | Zxw [get, set] |
Gets or sets an OpenTK.Vector3 with the Z, X, and W components of this instance. More... | |
Vector3 | Zyx [get, set] |
Gets or sets an OpenTK.Vector3 with the Z, Y, and X components of this instance. More... | |
Vector3 | Zyw [get, set] |
Gets or sets an OpenTK.Vector3 with the Z, Y, and W components of this instance. More... | |
Vector3 | Zwx [get, set] |
Gets or sets an OpenTK.Vector3 with the Z, W, and X components of this instance. More... | |
Vector3 | Zwy [get, set] |
Gets or sets an OpenTK.Vector3 with the Z, W, and Y components of this instance. More... | |
Vector3 | Wxy [get, set] |
Gets or sets an OpenTK.Vector3 with the W, X, and Y components of this instance. More... | |
Vector3 | Wxz [get, set] |
Gets or sets an OpenTK.Vector3 with the W, X, and Z components of this instance. More... | |
Vector3 | Wyx [get, set] |
Gets or sets an OpenTK.Vector3 with the W, Y, and X components of this instance. More... | |
Vector3 | Wyz [get, set] |
Gets or sets an OpenTK.Vector3 with the W, Y, and Z components of this instance. More... | |
Vector3 | Wzx [get, set] |
Gets or sets an OpenTK.Vector3 with the W, Z, and X components of this instance. More... | |
Vector3 | Wzy [get, set] |
Gets or sets an OpenTK.Vector3 with the W, Z, and Y components of this instance. More... | |
Vector4 | Xywz [get, set] |
Gets or sets an OpenTK.Vector4 with the X, Y, W, and Z components of this instance. More... | |
Vector4 | Xzyw [get, set] |
Gets or sets an OpenTK.Vector4 with the X, Z, Y, and W components of this instance. More... | |
Vector4 | Xzwy [get, set] |
Gets or sets an OpenTK.Vector4 with the X, Z, W, and Y components of this instance. More... | |
Vector4 | Xwyz [get, set] |
Gets or sets an OpenTK.Vector4 with the X, W, Y, and Z components of this instance. More... | |
Vector4 | Xwzy [get, set] |
Gets or sets an OpenTK.Vector4 with the X, W, Z, and Y components of this instance. More... | |
Vector4 | Yxzw [get, set] |
Gets or sets an OpenTK.Vector4 with the Y, X, Z, and W components of this instance. More... | |
Vector4 | Yxwz [get, set] |
Gets or sets an OpenTK.Vector4 with the Y, X, W, and Z components of this instance. More... | |
Vector4 | Yyzw [get, set] |
Gets an OpenTK.Vector4 with the Y, Y, Z, and W components of this instance. More... | |
Vector4 | Yywz [get, set] |
Gets an OpenTK.Vector4 with the Y, Y, W, and Z components of this instance. More... | |
Vector4 | Yzxw [get, set] |
Gets or sets an OpenTK.Vector4 with the Y, Z, X, and W components of this instance. More... | |
Vector4 | Yzwx [get, set] |
Gets or sets an OpenTK.Vector4 with the Y, Z, W, and X components of this instance. More... | |
Vector4 | Ywxz [get, set] |
Gets or sets an OpenTK.Vector4 with the Y, W, X, and Z components of this instance. More... | |
Vector4 | Ywzx [get, set] |
Gets or sets an OpenTK.Vector4 with the Y, W, Z, and X components of this instance. More... | |
Vector4 | Zxyw [get, set] |
Gets or sets an OpenTK.Vector4 with the Z, X, Y, and Z components of this instance. More... | |
Vector4 | Zxwy [get, set] |
Gets or sets an OpenTK.Vector4 with the Z, X, W, and Y components of this instance. More... | |
Vector4 | Zyxw [get, set] |
Gets or sets an OpenTK.Vector4 with the Z, Y, X, and W components of this instance. More... | |
Vector4 | Zywx [get, set] |
Gets or sets an OpenTK.Vector4 with the Z, Y, W, and X components of this instance. More... | |
Vector4 | Zwxy [get, set] |
Gets or sets an OpenTK.Vector4 with the Z, W, X, and Y components of this instance. More... | |
Vector4 | Zwyx [get, set] |
Gets or sets an OpenTK.Vector4 with the Z, W, Y, and X components of this instance. More... | |
Vector4 | Zwzy [get, set] |
Gets an OpenTK.Vector4 with the Z, W, Z, and Y components of this instance. More... | |
Vector4 | Wxyz [get, set] |
Gets or sets an OpenTK.Vector4 with the W, X, Y, and Z components of this instance. More... | |
Vector4 | Wxzy [get, set] |
Gets or sets an OpenTK.Vector4 with the W, X, Z, and Y components of this instance. More... | |
Vector4 | Wyxz [get, set] |
Gets or sets an OpenTK.Vector4 with the W, Y, X, and Z components of this instance. More... | |
Vector4 | Wyzx [get, set] |
Gets or sets an OpenTK.Vector4 with the W, Y, Z, and X components of this instance. More... | |
Vector4 | Wzxy [get, set] |
Gets or sets an OpenTK.Vector4 with the W, Z, X, and Y components of this instance. More... | |
Vector4 | Wzyx [get, set] |
Gets or sets an OpenTK.Vector4 with the W, Z, Y, and X components of this instance. More... | |
Vector4 | Wzyw [get, set] |
Gets an OpenTK.Vector4 with the W, Z, Y, and W components of this instance. More... | |
Represents a 4D vector using four single-precision floating-point numbers.
The Vector4 structure is suitable for interoperation with unmanaged code requiring four consecutive floats.
OpenTK.Vector4.Vector4 | ( | float | value | ) |
Constructs a new instance.
value | The value that will initialize this instance. |
OpenTK.Vector4.Vector4 | ( | float | x, |
float | y, | ||
float | z, | ||
float | w | ||
) |
OpenTK.Vector4.Vector4 | ( | Vector2 | v | ) |
OpenTK.Vector4.Vector4 | ( | Vector3 | v | ) |
Constructs a new Vector4 from the given Vector3. The w component is initialized to 0.
v | The Vector3 to copy components from. |
OpenTK.Vector4.Vector4 | ( | Vector3 | v, |
float | w | ||
) |
OpenTK.Vector4.Vector4 | ( | Vector4 | v | ) |
void OpenTK.Vector4.Add | ( | Vector4 | right | ) |
Add the Vector passed as parameter to this instance.
right | Right operand. This parameter is only read from. |
void OpenTK.Vector4.Add | ( | ref Vector4 | right | ) |
Add the Vector passed as parameter to this instance.
right | Right operand. This parameter is only read from. |
Adds two vectors.
a | Left operand. |
b | Right operand. |
Adds two vectors.
a | Left operand. |
b | Right operand. |
result | Result of operation. |
|
static |
Interpolate 3 Vectors using Barycentric coordinates
a | First input Vector |
b | Second input Vector |
c | Third input Vector |
u | First Barycentric Coordinate |
v | Second Barycentric Coordinate |
|
static |
Interpolate 3 Vectors using Barycentric coordinates
a | First input Vector. |
b | Second input Vector. |
c | Third input Vector. |
u | First Barycentric Coordinate. |
v | Second Barycentric Coordinate. |
result | Output Vector. a when u=v=0, b when u=1,v=0, c when u=0,v=1, and a linear combination of a,b,c otherwise |
Clamp a vector to the given minimum and maximum vectors
vec | Input vector |
min | Minimum vector |
max | Maximum vector |
|
static |
Clamp a vector to the given minimum and maximum vectors
vec | Input vector |
min | Minimum vector |
max | Maximum vector |
result | The clamped vector |
void OpenTK.Vector4.Div | ( | float | f | ) |
Divide this instance by a scalar.
f | Scalar operand. |
Divide a vector by a scalar
a | Vector operand |
f | Scalar operand |
Divide a vector by a scalar
a | Vector operand |
f | Scalar operand |
result | Result of the division |
Divides a vector by a scalar.
vector | Left operand. |
scale | Right operand. |
Divides a vector by a scalar.
vector | Left operand. |
scale | Right operand. |
result | Result of the operation. |
Divides a vector by the components of a vector (scale).
vector | Left operand. |
scale | Right operand. |
|
static |
Divide a vector by the components of a vector (scale).
vector | Left operand. |
scale | Right operand. |
result | Result of the operation. |
Calculate the dot product of two vectors
left | First operand |
right | Second operand |
Calculate the dot product of two vectors
left | First operand |
right | Second operand |
result | The dot product of the two inputs |
override bool OpenTK.Vector4.Equals | ( | object | obj | ) |
Indicates whether this instance and a specified object are equal.
obj | The object to compare to. |
bool OpenTK.Vector4.Equals | ( | Vector4 | other | ) |
Indicates whether the current vector is equal to another vector.
other | A vector to compare with this vector. |
override int OpenTK.Vector4.GetHashCode | ( | ) |
Returns the hashcode for this instance.
Returns a new Vector that is the linear blend of the 2 given Vectors
a | First input vector |
b | Second input vector |
blend | The blend factor. a when blend=0, b when blend=1. |
|
static |
Returns a new Vector that is the linear blend of the 2 given Vectors
a | First input vector |
b | Second input vector |
blend | The blend factor. a when blend=0, b when blend=1. |
result | a when blend=0, b when blend=1, and a linear combination otherwise |
Calculate the component-wise maximum of two vectors
a | First operand |
b | Second operand |
Calculate the component-wise maximum of two vectors
a | First operand |
b | Second operand |
result | The component-wise maximum |
Calculate the component-wise minimum of two vectors
a | First operand |
b | Second operand |
Calculate the component-wise minimum of two vectors
a | First operand |
b | Second operand |
result | The component-wise minimum |
void OpenTK.Vector4.Mult | ( | float | f | ) |
Multiply this instance by a scalar.
f | Scalar operand. |
Multiply a vector and a scalar
a | Vector operand |
f | Scalar operand |
Multiply a vector and a scalar
a | Vector operand |
f | Scalar operand |
result | Result of the multiplication |
Multiplies a vector by a scalar.
vector | Left operand. |
scale | Right operand. |
Multiplies a vector by a scalar.
vector | Left operand. |
scale | Right operand. |
result | Result of the operation. |
Multiplies a vector by the components a vector (scale).
vector | Left operand. |
scale | Right operand. |
|
static |
Multiplies a vector by the components of a vector (scale).
vector | Left operand. |
scale | Right operand. |
result | Result of the operation. |
void OpenTK.Vector4.Normalize | ( | ) |
Scales the Vector4 to unit length.
Scale a vector to unit length
vec | The input vector |
Scale a vector to unit length
vec | The input vector |
result | The normalized vector |
void OpenTK.Vector4.NormalizeFast | ( | ) |
Scales the Vector4 to approximately unit length.
Scale a vector to approximately unit length
vec | The input vector |
Scale a vector to approximately unit length
vec | The input vector |
result | The normalized vector |
|
explicitstatic |
Returns a pointer to the first element of the specified instance.
v | The instance. |
|
explicitstatic |
Returns a pointer to the first element of the specified instance.
v | The instance. |
Compares two instances for inequality.
left | The first instance. |
right | The second instance. |
Multiplies an instance by a scalar.
vec | The instance. |
scale | The scalar. |
Multiplies an instance by a scalar.
scale | The scalar. |
vec | The instance. |
Adds two instances.
left | The first instance. |
right | The second instance. |
Subtracts two instances.
left | The first instance. |
right | The second instance. |
Negates an instance.
vec | The instance. |
Divides an instance by a scalar.
vec | The instance. |
scale | The scalar. |
Compares two instances for equality.
left | The first instance. |
right | The second instance. |
void OpenTK.Vector4.Scale | ( | float | sx, |
float | sy, | ||
float | sz, | ||
float | sw | ||
) |
Scales the current Vector4 by the given amounts.
sx | The scale of the X component. |
sy | The scale of the Y component. |
sz | The scale of the Z component. |
sw | The scale of the Z component. |
void OpenTK.Vector4.Scale | ( | Vector4 | scale | ) |
Scales this instance by the given parameter.
scale | The scaling of the individual components. |
void OpenTK.Vector4.Scale | ( | ref Vector4 | scale | ) |
Scales this instance by the given parameter.
scale | The scaling of the individual components. |
void OpenTK.Vector4.Sub | ( | Vector4 | right | ) |
Subtract the Vector passed as parameter from this instance.
right | Right operand. This parameter is only read from. |
void OpenTK.Vector4.Sub | ( | ref Vector4 | right | ) |
Subtract the Vector passed as parameter from this instance.
right | Right operand. This parameter is only read from. |
Subtract one Vector from another
a | First operand |
b | Second operand |
Subtract one Vector from another
a | First operand |
b | Second operand |
result | Result of subtraction |
Subtract one Vector from another
a | First operand |
b | Second operand |
Subtract one Vector from another
a | First operand |
b | Second operand |
result | Result of subtraction |
override string OpenTK.Vector4.ToString | ( | ) |
Returns a System.String that represents the current Vector4.
Transform a Vector by the given Matrix
vec | The vector to transform |
mat | The desired transformation |
|
static |
Transform a Vector by the given Matrix
vec | The vector to transform |
mat | The desired transformation |
result | The transformed vector |
|
static |
Transforms a vector by a quaternion rotation.
vec | The vector to transform. |
quat | The quaternion to rotate the vector by. |
|
static |
Transforms a vector by a quaternion rotation.
vec | The vector to transform. |
quat | The quaternion to rotate the vector by. |
result | The result of the operation. |
Defines an instance with all components set to 1.
|
static |
Defines the size of the Vector4 struct in bytes.
Defines a unit-length Vector4 that points towards the W-axis.
Defines a unit-length Vector4 that points towards the X-axis.
Defines a unit-length Vector4 that points towards the Y-axis.
Defines a unit-length Vector4 that points towards the Z-axis.
float OpenTK.Vector4.W |
The W component of the Vector4.
float OpenTK.Vector4.X |
The X component of the Vector4.
float OpenTK.Vector4.Y |
The Y component of the Vector4.
float OpenTK.Vector4.Z |
The Z component of the Vector4.
Defines a zero-length Vector4.
|
get |
|
get |
Gets an approximation of the vector length (magnitude).
This property uses an approximation of the square root function to calculate vector magnitude, with an upper error bound of 0.001.
|
get |
Gets the square of the vector length (magnitude).
This property avoids the costly square root operation required by the Length property. This makes it more suitable for comparisons.
|
getset |
Gets or sets the value at the index of the Vector.
|
getset |
Gets or sets an OpenTK.Vector2 with the W and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the W, X, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the W, X, Y, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the W, X, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the W, X, Z, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the W and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the W, Y, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the W, Y, X, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the W, Y, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the W, Y, Z, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the W and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the W, Z, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the W, Z, X, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the W, Z, and Y components of this instance.
|
getset |
Gets an OpenTK.Vector4 with the W, Z, Y, and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the W, Z, Y, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the X and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the X, W, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the X, W, Y, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the X, W, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the X, W, Z, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the X and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the X, Y, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the X, Y, W, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the X, Y, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the X and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the X, Z, and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the X, Z, W, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the X, Z, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the X, Z, Y, and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the Y and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Y, W, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Y, W, X, and Z components of this instance.
|
getset |
Gets an OpenTK.Vector3 with the Y, W, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Y, W, Z, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the Y and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Y, X, and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Y, X, W, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Y, X, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Y, X, Z, and W components of this instance.
|
getset |
Gets an OpenTK.Vector4 with the Y, Y, W, and Z components of this instance.
|
getset |
Gets an OpenTK.Vector4 with the Y, Y, Z, and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the Y and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Y, Z, and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Y, Z, W, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Y, Z, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Y, Z, X, and W components of this instance.
|
getset |
Gets an OpenTK.Vector2 with the Z and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Z, W, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Z, W, X, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Z, W, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Z, W, Y, and X components of this instance.
|
getset |
Gets an OpenTK.Vector4 with the Z, W, Z, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the Z and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Z, X, and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Z, X, W, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Z, X, and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Z, X, Y, and Z components of this instance.
|
getset |
Gets or sets an OpenTK.Vector2 with the Z and Y components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Z, Y, and W components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Z, Y, W, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector3 with the Z, Y, and X components of this instance.
|
getset |
Gets or sets an OpenTK.Vector4 with the Z, Y, X, and W components of this instance.