![]() |
VR-Link C# API Documentation
|
Represents a 4D vector using four double-precision floating-point numbers. More...
Inheritance diagram for makVrl.Vector4d:
Collaboration diagram for makVrl.Vector4d:Public Member Functions | |
| Vector4d (double value) | |
| Constructs a new instance. | |
| Vector4d (double x, double y, double z, double w) | |
| Constructs a new Vector4d. | |
| Vector4d (Vector2d v) | |
| Constructs a new Vector4d from the given Vector2d. | |
| Vector4d (Vector3d v) | |
| Constructs a new Vector4d from the given Vector3d. | |
| Vector4d (Vector3d v, double w) | |
| Constructs a new Vector4d from the specified Vector3d and w component. | |
| Vector4d (Vector4d v) | |
| Constructs a new Vector4d from the given Vector4d. | |
| void | Add (Vector4d right) |
| Add the Vector passed as parameter to this instance. | |
| void | Add (ref Vector4d right) |
| Add the Vector passed as parameter to this instance. | |
| void | Sub (Vector4d right) |
| Subtract the Vector passed as parameter from this instance. | |
| void | Sub (ref Vector4d right) |
| Subtract the Vector passed as parameter from this instance. | |
| void | Mult (double f) |
| Multiply this instance by a scalar. | |
| void | Div (double f) |
| Divide this instance by a scalar. | |
| Vector4d | Normalized () |
| Returns a copy of the Vector4d scaled to unit length. | |
| void | Normalize () |
| Scales the Vector4d to unit length. | |
| void | NormalizeFast () |
| Scales the Vector4d to approximately unit length. | |
| void | Scale (double sx, double sy, double sz, double sw) |
| Scales the current Vector4d by the given amounts. | |
| void | Scale (Vector4d scale) |
| Scales this instance by the given parameter. | |
| void | Scale (ref Vector4d scale) |
| Scales this instance by the given parameter. | |
| override string | ToString () |
| Returns a System.String that represents the current Vector4d. | |
| override int | GetHashCode () |
| Returns the hashcode for this instance. | |
| override bool | Equals (object obj) |
| Indicates whether this instance and a specified object are equal. | |
| bool | Equals (Vector4d other) |
| Indicates whether the current vector is equal to another vector. | |
Static Public Member Functions | |
| static Vector4d | Sub (Vector4d a, Vector4d b) |
| Subtract one Vector from another | |
| static void | Sub (ref Vector4d a, ref Vector4d b, out Vector4d result) |
| Subtract one Vector from another | |
| static Vector4d | Mult (Vector4d a, double f) |
| Multiply a vector and a scalar | |
| static void | Mult (ref Vector4d a, double f, out Vector4d result) |
| Multiply a vector and a scalar | |
| static Vector4d | Div (Vector4d a, double f) |
| Divide a vector by a scalar | |
| static void | Div (ref Vector4d a, double f, out Vector4d result) |
| Divide a vector by a scalar | |
| static Vector4d | Add (Vector4d a, Vector4d b) |
| Adds two vectors. | |
| static void | Add (ref Vector4d a, ref Vector4d b, out Vector4d result) |
| Adds two vectors. | |
| static Vector4d | Subtract (Vector4d a, Vector4d b) |
| Subtract one Vector from another | |
| static void | Subtract (ref Vector4d a, ref Vector4d b, out Vector4d result) |
| Subtract one Vector from another | |
| static Vector4d | Multiply (Vector4d vector, double scale) |
| Multiplies a vector by a scalar. | |
| static void | Multiply (ref Vector4d vector, double scale, out Vector4d result) |
| Multiplies a vector by a scalar. | |
| static Vector4d | Multiply (Vector4d vector, Vector4d scale) |
| Multiplies a vector by the components a vector (scale). | |
| static void | Multiply (ref Vector4d vector, ref Vector4d scale, out Vector4d result) |
| Multiplies a vector by the components of a vector (scale). | |
| static Vector4d | Divide (Vector4d vector, double scale) |
| Divides a vector by a scalar. | |
| static void | Divide (ref Vector4d vector, double scale, out Vector4d result) |
| Divides a vector by a scalar. | |
| static Vector4d | Divide (Vector4d vector, Vector4d scale) |
| Divides a vector by the components of a vector (scale). | |
| static void | Divide (ref Vector4d vector, ref Vector4d scale, out Vector4d result) |
| Divide a vector by the components of a vector (scale). | |
| static Vector4d | Min (Vector4d a, Vector4d b) |
| Calculate the component-wise minimum of two vectors | |
| static void | Min (ref Vector4d a, ref Vector4d b, out Vector4d result) |
| Calculate the component-wise minimum of two vectors | |
| static Vector4d | Max (Vector4d a, Vector4d b) |
| Calculate the component-wise maximum of two vectors | |
| static void | Max (ref Vector4d a, ref Vector4d b, out Vector4d result) |
| Calculate the component-wise maximum of two vectors | |
| static Vector4d | Clamp (Vector4d vec, Vector4d min, Vector4d max) |
| Clamp a vector to the given minimum and maximum vectors | |
| static void | Clamp (ref Vector4d vec, ref Vector4d min, ref Vector4d max, out Vector4d result) |
| Clamp a vector to the given minimum and maximum vectors | |
| static Vector4d | Normalize (Vector4d vec) |
| Scale a vector to unit length | |
| static void | Normalize (ref Vector4d vec, out Vector4d result) |
| Scale a vector to unit length | |
| static Vector4d | NormalizeFast (Vector4d vec) |
| Scale a vector to approximately unit length | |
| static void | NormalizeFast (ref Vector4d vec, out Vector4d result) |
| Scale a vector to approximately unit length | |
| static double | Dot (Vector4d left, Vector4d right) |
| Calculate the dot product of two vectors | |
| static void | Dot (ref Vector4d left, ref Vector4d right, out double result) |
| Calculate the dot product of two vectors | |
| static Vector4d | Lerp (Vector4d a, Vector4d b, double blend) |
| Returns a new Vector that is the linear blend of the 2 given Vectors | |
| static void | Lerp (ref Vector4d a, ref Vector4d b, double blend, out Vector4d result) |
| Returns a new Vector that is the linear blend of the 2 given Vectors | |
| static Vector4d | BaryCentric (Vector4d a, Vector4d b, Vector4d c, double u, double v) |
| Interpolate 3 Vectors using Barycentric coordinates | |
| static void | BaryCentric (ref Vector4d a, ref Vector4d b, ref Vector4d c, double u, double v, out Vector4d result) |
| Interpolate 3 Vectors using Barycentric coordinates | |
| static Vector4d | Transform (Vector4d vec, Matrix4d mat) |
| Transform a Vector by the given Matrix | |
| static void | Transform (ref Vector4d vec, ref Matrix4d mat, out Vector4d result) |
| Transform a Vector by the given Matrix | |
| static Vector4d | Transform (Vector4d vec, Quaterniond quat) |
| Transforms a vector by a quaternion rotation. | |
| static void | Transform (ref Vector4d vec, ref Quaterniond quat, out Vector4d result) |
| Transforms a vector by a quaternion rotation. | |
| static Vector4d | operator+ (Vector4d left, Vector4d right) |
| Adds two instances. | |
| static Vector4d | operator- (Vector4d left, Vector4d right) |
| Subtracts two instances. | |
| static Vector4d | operator- (Vector4d vec) |
| Negates an instance. | |
| static Vector4d | operator* (Vector4d vec, double scale) |
| Multiplies an instance by a scalar. | |
| static Vector4d | operator* (double scale, Vector4d vec) |
| Multiplies an instance by a scalar. | |
| static Vector4d | operator/ (Vector4d vec, double scale) |
| Divides an instance by a scalar. | |
| static bool | operator== (Vector4d left, Vector4d right) |
| Compares two instances for equality. | |
| static bool | operator!= (Vector4d left, Vector4d right) |
| Compares two instances for inequality. | |
| static | operator Vector4d (Vector4 v4) |
| Converts makVrl.Vector4 to makVrl.Vector4d. | |
| static | operator Vector4 (Vector4d v4d) |
| Converts makVrl.Vector4d to makVrl.Vector4. | |
Public Attributes | |
| double | X |
| The X component of the Vector4d. | |
| double | Y |
| The Y component of the Vector4d. | |
| double | Z |
| The Z component of the Vector4d. | |
| double | W |
| The W component of the Vector4d. | |
Static Public Attributes | |
| static readonly Vector4d | UnitX = new Vector4d(1, 0, 0, 0) |
| Defines a unit-length Vector4d that points towards the X-axis. | |
| static readonly Vector4d | UnitY = new Vector4d(0, 1, 0, 0) |
| Defines a unit-length Vector4d that points towards the Y-axis. | |
| static readonly Vector4d | UnitZ = new Vector4d(0, 0, 1, 0) |
| Defines a unit-length Vector4d that points towards the Z-axis. | |
| static readonly Vector4d | UnitW = new Vector4d(0, 0, 0, 1) |
| Defines a unit-length Vector4d that points towards the W-axis. | |
| static readonly Vector4d | Zero = new Vector4d(0, 0, 0, 0) |
| Defines a zero-length Vector4d. | |
| static readonly Vector4d | One = new Vector4d(1, 1, 1, 1) |
| Defines an instance with all components set to 1. | |
| static readonly int | SizeInBytes = Marshal.SizeOf(new Vector4d()) |
| Defines the size of the Vector4d struct in bytes. | |
Properties | |
| double | this[int index] [get, set] |
| Gets or sets the value at the index of the Vector. | |
| double | Length [get] |
| Gets the length (magnitude) of the vector. | |
| double | LengthFast [get] |
| Gets an approximation of the vector length (magnitude). | |
| double | LengthSquared [get] |
| Gets the square of the vector length (magnitude). | |
| Vector2d | Xy [get, set] |
| Gets or sets an makVrl.Vector2d with the X and Y components of this instance. | |
| Vector2d | Xz [get, set] |
| Gets or sets an makVrl.Vector2d with the X and Z components of this instance. | |
| Vector2d | Xw [get, set] |
| Gets or sets an makVrl.Vector2d with the X and W components of this instance. | |
| Vector2d | Yx [get, set] |
| Gets or sets an makVrl.Vector2d with the Y and X components of this instance. | |
| Vector2d | Yz [get, set] |
| Gets or sets an makVrl.Vector2d with the Y and Z components of this instance. | |
| Vector2d | Yw [get, set] |
| Gets or sets an makVrl.Vector2d with the Y and W components of this instance. | |
| Vector2d | Zx [get, set] |
| Gets or sets an makVrl.Vector2d with the Z and X components of this instance. | |
| Vector2d | Zy [get, set] |
| Gets or sets an makVrl.Vector2d with the Z and Y components of this instance. | |
| Vector2d | Zw [get, set] |
| Gets an makVrl.Vector2d with the Z and W components of this instance. | |
| Vector2d | Wx [get, set] |
| Gets or sets an makVrl.Vector2d with the W and X components of this instance. | |
| Vector2d | Wy [get, set] |
| Gets or sets an makVrl.Vector2d with the W and Y components of this instance. | |
| Vector2d | Wz [get, set] |
| Gets or sets an makVrl.Vector2d with the W and Z components of this instance. | |
| Vector3d | Xyz [get, set] |
| Gets or sets an makVrl.Vector3d with the X, Y, and Z components of this instance. | |
| Vector3d | Xyw [get, set] |
| Gets or sets an makVrl.Vector3d with the X, Y, and Z components of this instance. | |
| Vector3d | Xzy [get, set] |
| Gets or sets an makVrl.Vector3d with the X, Z, and Y components of this instance. | |
| Vector3d | Xzw [get, set] |
| Gets or sets an makVrl.Vector3d with the X, Z, and W components of this instance. | |
| Vector3d | Xwy [get, set] |
| Gets or sets an makVrl.Vector3d with the X, W, and Y components of this instance. | |
| Vector3d | Xwz [get, set] |
| Gets or sets an makVrl.Vector3d with the X, W, and Z components of this instance. | |
| Vector3d | Yxz [get, set] |
| Gets or sets an makVrl.Vector3d with the Y, X, and Z components of this instance. | |
| Vector3d | Yxw [get, set] |
| Gets or sets an makVrl.Vector3d with the Y, X, and W components of this instance. | |
| Vector3d | Yzx [get, set] |
| Gets or sets an makVrl.Vector3d with the Y, Z, and X components of this instance. | |
| Vector3d | Yzw [get, set] |
| Gets or sets an makVrl.Vector3d with the Y, Z, and W components of this instance. | |
| Vector3d | Ywx [get, set] |
| Gets or sets an makVrl.Vector3d with the Y, W, and X components of this instance. | |
| Vector3d | Ywz [get, set] |
| Gets an makVrl.Vector3d with the Y, W, and Z components of this instance. | |
| Vector3d | Zxy [get, set] |
| Gets or sets an makVrl.Vector3d with the Z, X, and Y components of this instance. | |
| Vector3d | Zxw [get, set] |
| Gets or sets an makVrl.Vector3d with the Z, X, and W components of this instance. | |
| Vector3d | Zyx [get, set] |
| Gets or sets an makVrl.Vector3d with the Z, Y, and X components of this instance. | |
| Vector3d | Zyw [get, set] |
| Gets or sets an makVrl.Vector3d with the Z, Y, and W components of this instance. | |
| Vector3d | Zwx [get, set] |
| Gets or sets an makVrl.Vector3d with the Z, W, and X components of this instance. | |
| Vector3d | Zwy [get, set] |
| Gets or sets an makVrl.Vector3d with the Z, W, and Y components of this instance. | |
| Vector3d | Wxy [get, set] |
| Gets or sets an makVrl.Vector3d with the W, X, and Y components of this instance. | |
| Vector3d | Wxz [get, set] |
| Gets or sets an makVrl.Vector3d with the W, X, and Z components of this instance. | |
| Vector3d | Wyx [get, set] |
| Gets or sets an makVrl.Vector3d with the W, Y, and X components of this instance. | |
| Vector3d | Wyz [get, set] |
| Gets or sets an makVrl.Vector3d with the W, Y, and Z components of this instance. | |
| Vector3d | Wzx [get, set] |
| Gets or sets an makVrl.Vector3d with the W, Z, and X components of this instance. | |
| Vector3d | Wzy [get, set] |
| Gets or sets an makVrl.Vector3d with the W, Z, and Y components of this instance. | |
| Vector4d | Xywz [get, set] |
| Gets or sets an makVrl.Vector4d with the X, Y, W, and Z components of this instance. | |
| Vector4d | Xzyw [get, set] |
| Gets or sets an makVrl.Vector4d with the X, Z, Y, and W components of this instance. | |
| Vector4d | Xzwy [get, set] |
| Gets or sets an makVrl.Vector4d with the X, Z, W, and Y components of this instance. | |
| Vector4d | Xwyz [get, set] |
| Gets or sets an makVrl.Vector4d with the X, W, Y, and Z components of this instance. | |
| Vector4d | Xwzy [get, set] |
| Gets or sets an makVrl.Vector4d with the X, W, Z, and Y components of this instance. | |
| Vector4d | Yxzw [get, set] |
| Gets or sets an makVrl.Vector4d with the Y, X, Z, and W components of this instance. | |
| Vector4d | Yxwz [get, set] |
| Gets or sets an makVrl.Vector4d with the Y, X, W, and Z components of this instance. | |
| Vector4d | Yyzw [get, set] |
| Gets an makVrl.Vector4d with the Y, Y, Z, and W components of this instance. | |
| Vector4d | Yywz [get, set] |
| Gets an makVrl.Vector4d with the Y, Y, W, and Z components of this instance. | |
| Vector4d | Yzxw [get, set] |
| Gets or sets an makVrl.Vector4d with the Y, Z, X, and W components of this instance. | |
| Vector4d | Yzwx [get, set] |
| Gets or sets an makVrl.Vector4d with the Y, Z, W, and X components of this instance. | |
| Vector4d | Ywxz [get, set] |
| Gets or sets an makVrl.Vector4d with the Y, W, X, and Z components of this instance. | |
| Vector4d | Ywzx [get, set] |
| Gets or sets an makVrl.Vector4d with the Y, W, Z, and X components of this instance. | |
| Vector4d | Zxyw [get, set] |
| Gets or sets an makVrl.Vector4d with the Z, X, Y, and Z components of this instance. | |
| Vector4d | Zxwy [get, set] |
| Gets or sets an makVrl.Vector4d with the Z, X, W, and Y components of this instance. | |
| Vector4d | Zyxw [get, set] |
| Gets or sets an makVrl.Vector4d with the Z, Y, X, and W components of this instance. | |
| Vector4d | Zywx [get, set] |
| Gets or sets an makVrl.Vector4d with the Z, Y, W, and X components of this instance. | |
| Vector4d | Zwxy [get, set] |
| Gets or sets an makVrl.Vector4d with the Z, W, X, and Y components of this instance. | |
| Vector4d | Zwyx [get, set] |
| Gets or sets an makVrl.Vector4d with the Z, W, Y, and X components of this instance. | |
| Vector4d | Zwzy [get, set] |
| Gets an makVrl.Vector4d with the Z, W, Z, and Y components of this instance. | |
| Vector4d | Wxyz [get, set] |
| Gets or sets an makVrl.Vector4d with the W, X, Y, and Z components of this instance. | |
| Vector4d | Wxzy [get, set] |
| Gets or sets an makVrl.Vector4d with the W, X, Z, and Y components of this instance. | |
| Vector4d | Wyxz [get, set] |
| Gets or sets an makVrl.Vector4d with the W, Y, X, and Z components of this instance. | |
| Vector4d | Wyzx [get, set] |
| Gets or sets an makVrl.Vector4d with the W, Y, Z, and X components of this instance. | |
| Vector4d | Wzxy [get, set] |
| Gets or sets an makVrl.Vector4d with the W, Z, X, and Y components of this instance. | |
| Vector4d | Wzyx [get, set] |
| Gets or sets an makVrl.Vector4d with the W, Z, Y, and X components of this instance. | |
| Vector4d | Wzyw [get, set] |
| Gets an makVrl.Vector4d with the W, Z, Y, and W components of this instance. | |
Static Private Attributes | |
| static string | listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator |
Represents a 4D vector using four double-precision floating-point numbers.
|
inline |
Constructs a new instance.
| value | The value that will initialize this instance. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Referenced by makVrl.Vector4d.Add(), makVrl.Vector4d.Divide(), makVrl.Vector4d.Multiply(), makVrl.Vector4d.operator Vector4d(), makVrl.Vector4d.Subtract(), and makVrl.Vector4d.Transform().
|
inline |
Constructs a new Vector4d.
| x | The x component of the Vector4d. |
| y | The y component of the Vector4d. |
| z | The z component of the Vector4d. |
| w | The w component of the Vector4d. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inline |
Constructs a new Vector4d from the given Vector2d.
| v | The Vector2d to copy components from. |
References makVrl.Vector4d.W, makVrl.Vector2d.X, makVrl.Vector4d.X, makVrl.Vector2d.Y, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inline |
Constructs a new Vector4d from the given Vector3d.
The w component is initialized to 0.
| v | The Vector3d to copy components from. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector3d.X, makVrl.Vector4d.Y, makVrl.Vector3d.Y, makVrl.Vector4d.Z, and makVrl.Vector3d.Z.
|
inline |
Constructs a new Vector4d from the specified Vector3d and w component.
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector3d.X, makVrl.Vector4d.Y, makVrl.Vector3d.Y, makVrl.Vector4d.Z, and makVrl.Vector3d.Z.
|
inline |
Constructs a new Vector4d from the given Vector4d.
| v | The Vector4d to copy components from. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inline |
Add the Vector passed as parameter to this instance.
| right | Right operand. This parameter is only read from. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Referenced by makVrl.Vector4d.Add(), and makVrl.Vector4d.BaryCentric().
|
inline |
Add the Vector passed as parameter to this instance.
| right | Right operand. This parameter is only read from. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Adds two vectors.
| a | Left operand. |
| b | Right operand. |
References makVrl.Vector4d.Add().
|
inlinestatic |
Adds two vectors.
| a | Left operand. |
| b | Right operand. |
| result | Result of operation. |
References makVrl.Vector4d.Vector4d().
|
inlinestatic |
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 |
|
inlinestatic |
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 |
References makVrl.Vector4d.Add(), makVrl.Vector4d.Multiply(), and makVrl.Vector4d.Subtract().
Clamp a vector to the given minimum and maximum vectors
| vec | Input vector |
| min | Minimum vector |
| max | Maximum vector |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inlinestatic |
Clamp a vector to the given minimum and maximum vectors
| vec | Input vector |
| min | Minimum vector |
| max | Maximum vector |
| result | The clamped vector |
References makVrl.Vector4d.X.
|
inline |
Divide this instance by a scalar.
| f | Scalar operand. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Divide a vector by a scalar
| a | Vector operand |
| f | Scalar operand |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
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. |
Referenced by makVrl.Vector4d.Divide().
|
inlinestatic |
Divides a vector by a scalar.
| vector | Left operand. |
| scale | Right operand. |
| result | Result of the operation. |
References makVrl.Vector4d.Multiply().
Divides a vector by the components of a vector (scale).
| vector | Left operand. |
| scale | Right operand. |
References makVrl.Vector4d.Divide().
|
inlinestatic |
Divide a vector by the components of a vector (scale).
| vector | Left operand. |
| scale | Right operand. |
| result | Result of the operation. |
References makVrl.Vector4d.Vector4d().
Calculate the dot product of two vectors
| left | First operand |
| right | Second operand |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inlinestatic |
Calculate the dot product of two vectors
| left | First operand |
| right | Second operand |
| result | The dot product of the two inputs |
|
inline |
Indicates whether this instance and a specified object are equal.
| obj | The object to compare to. |
Referenced by makVrl.Vector4d.operator!=(), and makVrl.Vector4d.operator==().
|
inline |
Indicates whether the current vector is equal to another vector.
| other | A vector to compare with this vector. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inline |
Returns the hashcode for this instance.
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Referenced by makVrl.Matrix4d.GetHashCode().
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. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inlinestatic |
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 |
References makVrl.Vector4d.X.
Calculate the component-wise maximum of two vectors
| a | First operand |
| b | Second operand |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inlinestatic |
Calculate the component-wise maximum of two vectors
| a | First operand |
| b | Second operand |
| result | The component-wise maximum |
References makVrl.Vector4d.X.
Calculate the component-wise minimum of two vectors
| a | First operand |
| b | Second operand |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inlinestatic |
Calculate the component-wise minimum of two vectors
| a | First operand |
| b | Second operand |
| result | The component-wise minimum |
References makVrl.Vector4d.X.
|
inline |
Multiply this instance by a scalar.
| f | Scalar operand. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Multiply a vector and a scalar
| a | Vector operand |
| f | Scalar operand |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
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. |
Referenced by makVrl.Vector4d.BaryCentric(), makVrl.Vector4d.Divide(), and makVrl.Vector4d.Multiply().
|
inlinestatic |
Multiplies a vector by a scalar.
| vector | Left operand. |
| scale | Right operand. |
| result | Result of the operation. |
References makVrl.Vector4d.Vector4d().
Multiplies a vector by the components a vector (scale).
| vector | Left operand. |
| scale | Right operand. |
References makVrl.Vector4d.Multiply().
|
inlinestatic |
Multiplies a vector by the components of a vector (scale).
| vector | Left operand. |
| scale | Right operand. |
| result | Result of the operation. |
References makVrl.Vector4d.Vector4d().
|
inline |
Scales the Vector4d to unit length.
References makVrl.Vector4d.Length, makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Referenced by makVrl.Vector4d.Normalized().
Scale a vector to unit length
| vec | The input vector |
References makVrl.Vector4d.Length, makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Scale a vector to unit length
| vec | The input vector |
| result | The normalized vector |
|
inline |
Returns a copy of the Vector4d scaled to unit length.
References makVrl.Vector4d.Normalize().
|
inline |
Scales the Vector4d to approximately unit length.
References makVrl.MathHelper.InverseSqrtFast(), makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Scale a vector to approximately unit length
| vec | The input vector |
References makVrl.MathHelper.InverseSqrtFast(), makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Scale a vector to approximately unit length
| vec | The input vector |
| result | The normalized vector |
References makVrl.MathHelper.InverseSqrtFast().
Converts makVrl.Vector4d to makVrl.Vector4.
| v4d | The Vector4d to convert. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Converts makVrl.Vector4 to makVrl.Vector4d.
| v4 | The Vector4 to convert. |
References makVrl.Vector4d.Vector4d(), makVrl.Vector4.W, makVrl.Vector4.X, makVrl.Vector4.Y, and makVrl.Vector4.Z.
Compares two instances for inequality.
| left | The first instance. |
| right | The second instance. |
References makVrl.Vector4d.Equals().
Multiplies an instance by a scalar.
| vec | The instance. |
| scale | The scalar. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Multiplies an instance by a scalar.
| scale | The scalar. |
| vec | The instance. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Adds two instances.
| left | The first instance. |
| right | The second instance. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Subtracts two instances.
| left | The first instance. |
| right | The second instance. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Negates an instance.
| vec | The instance. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Divides an instance by a scalar.
| vec | The instance. |
| scale | The scalar. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Compares two instances for equality.
| left | The first instance. |
| right | The second instance. |
References makVrl.Vector4d.Equals().
|
inline |
Scales the current Vector4d 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. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inline |
Scales this instance by the given parameter.
| scale | The scaling of the individual components. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inline |
Scales this instance by the given parameter.
| scale | The scaling of the individual components. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inline |
Subtract the Vector passed as parameter from this instance.
| right | Right operand. This parameter is only read from. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inline |
Subtract the Vector passed as parameter from this instance.
| right | Right operand. This parameter is only read from. |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Subtract one Vector from another
| a | First operand |
| b | Second operand |
References makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
|
inlinestatic |
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 |
Referenced by makVrl.Vector4d.BaryCentric().
|
inlinestatic |
Subtract one Vector from another
| a | First operand |
| b | Second operand |
| result | Result of subtraction |
References makVrl.Vector4d.Vector4d().
|
inline |
Returns a System.String that represents the current Vector4d.
References makVrl.Vector4d.listSeparator, makVrl.Vector4d.W, makVrl.Vector4d.X, makVrl.Vector4d.Y, and makVrl.Vector4d.Z.
Transform a Vector by the given Matrix
| vec | The vector to transform |
| mat | The desired transformation |
Referenced by makVrl.Vector4d.Transform(), makVrl.Vector3d.Transform(), and makVrl.Vector3d.TransformPerspective().
|
inlinestatic |
Transform a Vector by the given Matrix
| vec | The vector to transform |
| mat | The desired transformation |
| result | The transformed vector |
References makVrl.Vector4d.Vector4d().
|
inlinestatic |
Transforms a vector by a quaternion rotation.
| vec | The vector to transform. |
| quat | The quaternion to rotate the vector by. |
References makVrl.Vector4d.Transform().
|
inlinestatic |
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. |
References makVrl.Quaterniond.Invert(), makVrl.Quaterniond.Multiply(), and makVrl.Vector4d.Vector4d().
|
staticprivate |
Referenced by makVrl.Vector4d.ToString().
Defines an instance with all components set to 1.
|
static |
Defines the size of the Vector4d struct in bytes.
Defines a unit-length Vector4d that points towards the W-axis.
Referenced by makVrl.Matrix4d.CreateRotationX(), makVrl.Matrix4d.CreateRotationY(), makVrl.Matrix4d.CreateRotationZ(), makVrl.Matrix4d.LookAt(), makVrl.Matrix4d.Rotate(), makVrl.Matrix4d.RotateX(), makVrl.Matrix4d.RotateY(), makVrl.Matrix4d.RotateZ(), and makVrl.Matrix4d.Scale().
Defines a unit-length Vector4d that points towards the X-axis.
Referenced by makVrl.Matrix4d.CreateRotationX(), makVrl.Matrix4d.RotateX(), and makVrl.Matrix4d.Scale().
Defines a unit-length Vector4d that points towards the Y-axis.
Referenced by makVrl.Matrix4d.CreateRotationY(), makVrl.Matrix4d.RotateY(), and makVrl.Matrix4d.Scale().
Defines a unit-length Vector4d that points towards the Z-axis.
Referenced by makVrl.Matrix4d.CreateRotationZ(), makVrl.Matrix4d.RotateZ(), and makVrl.Matrix4d.Scale().
| double makVrl.Vector4d.W |
The W component of the Vector4d.
Referenced by makVrl.Vector4d.Add(), makVrl.Vector4d.Clamp(), makVrl.Vector4d.Div(), makVrl.Vector4d.Dot(), makVrl.Vector4d.Equals(), makVrl.Vector4d.GetHashCode(), makVrl.Matrix4d.Invert(), makVrl.Vector4d.Lerp(), makVrl.Vector4d.Max(), makVrl.Vector4d.Min(), makVrl.Vector4d.Mult(), makVrl.Vector4d.Normalize(), makVrl.Vector4d.NormalizeFast(), makVrl.Vector4d.operator Vector4(), makVrl.Vector4d.operator*(), makVrl.Vector4d.operator+(), makVrl.Vector4d.operator-(), makVrl.Vector4d.operator/(), makVrl.Vector4d.Scale(), makVrl.Vector4d.Sub(), makVrl.Quaterniond.ToAxisAngle(), makVrl.Vector4d.ToString(), and makVrl.Vector4d.Vector4d().
| double makVrl.Vector4d.X |
The X component of the Vector4d.
Referenced by makVrl.Vector4d.Add(), makVrl.Vector4d.Clamp(), makVrl.Vector4d.Div(), makVrl.Vector4d.Dot(), makVrl.Vector4d.Equals(), makVrl.Vector4d.GetHashCode(), makVrl.Matrix4d.Invert(), makVrl.Vector4d.Lerp(), makVrl.Vector4d.Max(), makVrl.Vector4d.Min(), makVrl.Vector4d.Mult(), makVrl.Matrix4d.Mult(), makVrl.Vector4d.Normalize(), makVrl.Vector4d.NormalizeFast(), makVrl.Vector4d.operator Vector4(), makVrl.Vector4d.operator*(), makVrl.Vector4d.operator+(), makVrl.Vector4d.operator-(), makVrl.Vector4d.operator/(), makVrl.Vector4d.Scale(), makVrl.Vector4d.Sub(), makVrl.TaitBryan.TaitBryan(), makVrl.Vector4d.ToString(), makVrl.Vector3d.TransformPerspective(), makVrl.Vector3d.TransformPosition(), makVrl.Vector3d.Vector3d(), and makVrl.Vector4d.Vector4d().
| double makVrl.Vector4d.Y |
The Y component of the Vector4d.
Referenced by makVrl.Vector4d.Add(), makVrl.Vector4d.Clamp(), makVrl.Vector4d.Div(), makVrl.Vector4d.Dot(), makVrl.Vector4d.Equals(), makVrl.Vector4d.GetHashCode(), makVrl.Matrix4d.Invert(), makVrl.Vector4d.Lerp(), makVrl.Vector4d.Max(), makVrl.Vector4d.Min(), makVrl.Vector4d.Mult(), makVrl.Vector4d.Normalize(), makVrl.Vector4d.NormalizeFast(), makVrl.Vector4d.operator Vector4(), makVrl.Vector4d.operator*(), makVrl.Vector4d.operator+(), makVrl.Vector4d.operator-(), makVrl.Vector4d.operator/(), makVrl.Vector4d.Scale(), makVrl.Vector4d.Sub(), makVrl.TaitBryan.TaitBryan(), makVrl.Vector4d.ToString(), makVrl.Vector3d.TransformPosition(), makVrl.Vector3d.Vector3d(), and makVrl.Vector4d.Vector4d().
| double makVrl.Vector4d.Z |
The Z component of the Vector4d.
Referenced by makVrl.Vector4d.Add(), makVrl.Vector4d.Clamp(), makVrl.Vector4d.Div(), makVrl.Vector4d.Dot(), makVrl.Vector4d.Equals(), makVrl.Vector4d.GetHashCode(), makVrl.Matrix4d.Invert(), makVrl.Vector4d.Lerp(), makVrl.Vector4d.Max(), makVrl.Vector4d.Min(), makVrl.Vector4d.Mult(), makVrl.Vector4d.Normalize(), makVrl.Vector4d.NormalizeFast(), makVrl.Vector4d.operator Vector4(), makVrl.Vector4d.operator*(), makVrl.Vector4d.operator+(), makVrl.Vector4d.operator-(), makVrl.Vector4d.operator/(), makVrl.Vector4d.Scale(), makVrl.Vector4d.Sub(), makVrl.TaitBryan.TaitBryan(), makVrl.Vector4d.ToString(), makVrl.Vector3d.TransformPosition(), makVrl.Vector3d.Vector3d(), and makVrl.Vector4d.Vector4d().
Defines a zero-length Vector4d.
Referenced by makVrl.Matrix4d.ClearProjection().
|
get |
Gets the length (magnitude) of the vector.
Referenced by makVrl.Vector4d.Normalize().
|
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 makVrl.Vector2d with the W and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the W, X, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the W, X, Y, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the W, X, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the W, X, Z, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector2d with the W and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the W, Y, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the W, Y, X, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the W, Y, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the W, Y, Z, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector2d with the W and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the W, Z, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the W, Z, X, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the W, Z, and Y components of this instance.
|
getset |
Gets an makVrl.Vector4d with the W, Z, Y, and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the W, Z, Y, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector2d with the X and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the X, W, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the X, W, Y, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the X, W, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the X, W, Z, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector2d with the X and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the X, Y, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the X, Y, W, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the X, Y, and Z components of this instance.
Referenced by makVrl.Matrix4d.ClearRotation(), makVrl.Matrix4d.ClearScale(), makVrl.Matrix4d.ClearTranslation(), makVrl.Matrix4d.ExtractRotation(), makVrl.Matrix4d.ExtractScale(), makVrl.Matrix4d.ExtractTranslation(), makVrl.Matrix3d.Matrix3d(), makVrl.Quaterniond.ToAxisAngle(), and makVrl.Vector3d.Transform().
|
getset |
Gets or sets an makVrl.Vector2d with the X and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the X, Z, and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the X, Z, W, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the X, Z, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the X, Z, Y, and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector2d with the Y and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Y, W, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Y, W, X, and Z components of this instance.
|
getset |
Gets an makVrl.Vector3d with the Y, W, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Y, W, Z, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector2d with the Y and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Y, X, and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Y, X, W, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Y, X, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Y, X, Z, and W components of this instance.
|
getset |
Gets an makVrl.Vector4d with the Y, Y, W, and Z components of this instance.
|
getset |
Gets an makVrl.Vector4d with the Y, Y, Z, and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector2d with the Y and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Y, Z, and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Y, Z, W, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Y, Z, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Y, Z, X, and W components of this instance.
|
getset |
Gets an makVrl.Vector2d with the Z and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Z, W, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Z, W, X, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Z, W, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Z, W, Y, and X components of this instance.
|
getset |
Gets an makVrl.Vector4d with the Z, W, Z, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector2d with the Z and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Z, X, and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Z, X, W, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Z, X, and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Z, X, Y, and Z components of this instance.
|
getset |
Gets or sets an makVrl.Vector2d with the Z and Y components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Z, Y, and W components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Z, Y, W, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector3d with the Z, Y, and X components of this instance.
|
getset |
Gets or sets an makVrl.Vector4d with the Z, Y, X, and W components of this instance.