![]() |
VR-Link C# API Documentation
|
Represents a 3D vector using three double-precision floating-point numbers. More...
Inheritance diagram for makVrl.Vector3d:
Collaboration diagram for makVrl.Vector3d:Public Member Functions | |
| Vector3d (double value) | |
| Constructs a new instance. More... | |
| Vector3d (double x, double y, double z) | |
| Constructs a new Vector3. More... | |
| Vector3d (Vector2d v) | |
| Constructs a new instance from the given Vector2d. More... | |
| Vector3d (Vector3d v) | |
| Constructs a new instance from the given Vector3d. More... | |
| Vector3d (Vector4d v) | |
| Constructs a new instance from the given Vector4d. More... | |
| void | Add (Vector3d right) |
| Add the Vector passed as parameter to this instance. More... | |
| void | Add (ref Vector3d right) |
| Add the Vector passed as parameter to this instance. More... | |
| void | Sub (Vector3d right) |
| Subtract the Vector passed as parameter from this instance. More... | |
| void | Sub (ref Vector3d right) |
| Subtract the Vector passed as parameter from this instance. More... | |
| void | Mult (double f) |
| Multiply this instance by a scalar. More... | |
| void | Div (double f) |
| Divide this instance by a scalar. More... | |
| Vector3d | Normalized () |
| Returns a copy of the Vector3d scaled to unit length. More... | |
| void | Normalize () |
| Scales the Vector3d to unit length. More... | |
| void | NormalizeFast () |
| Scales the Vector3d to approximately unit length. More... | |
| void | Scale (double sx, double sy, double sz) |
| Scales the current Vector3d by the given amounts. More... | |
| void | Scale (Vector3d scale) |
| Scales this instance by the given parameter. More... | |
| void | Scale (ref Vector3d scale) |
| Scales this instance by the given parameter. More... | |
| override string | ToString () |
| Returns a System.String that represents the current Vector3. 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 (Vector3d other) |
| Indicates whether the current vector is equal to another vector. More... | |
Static Public Member Functions | |
| static Vector3d | Sub (Vector3d a, Vector3d b) |
| Subtract one Vector from another More... | |
| static void | Sub (ref Vector3d a, ref Vector3d b, out Vector3d result) |
| Subtract one Vector from another More... | |
| static Vector3d | Mult (Vector3d a, double f) |
| Multiply a vector and a scalar More... | |
| static void | Mult (ref Vector3d a, double f, out Vector3d result) |
| Multiply a vector and a scalar More... | |
| static Vector3d | Div (Vector3d a, double f) |
| Divide a vector by a scalar More... | |
| static void | Div (ref Vector3d a, double f, out Vector3d result) |
| Divide a vector by a scalar More... | |
| static Vector3d | Add (Vector3d a, Vector3d b) |
| Adds two vectors. More... | |
| static void | Add (ref Vector3d a, ref Vector3d b, out Vector3d result) |
| Adds two vectors. More... | |
| static Vector3d | Subtract (Vector3d a, Vector3d b) |
| Subtract one Vector from another More... | |
| static void | Subtract (ref Vector3d a, ref Vector3d b, out Vector3d result) |
| Subtract one Vector from another More... | |
| static Vector3d | Multiply (Vector3d vector, double scale) |
| Multiplies a vector by a scalar. More... | |
| static void | Multiply (ref Vector3d vector, double scale, out Vector3d result) |
| Multiplies a vector by a scalar. More... | |
| static Vector3d | Multiply (Vector3d vector, Vector3d scale) |
| Multiplies a vector by the components a vector (scale). More... | |
| static void | Multiply (ref Vector3d vector, ref Vector3d scale, out Vector3d result) |
| Multiplies a vector by the components of a vector (scale). More... | |
| static Vector3d | Divide (Vector3d vector, double scale) |
| Divides a vector by a scalar. More... | |
| static void | Divide (ref Vector3d vector, double scale, out Vector3d result) |
| Divides a vector by a scalar. More... | |
| static Vector3d | Divide (Vector3d vector, Vector3d scale) |
| Divides a vector by the components of a vector (scale). More... | |
| static void | Divide (ref Vector3d vector, ref Vector3d scale, out Vector3d result) |
| Divide a vector by the components of a vector (scale). More... | |
| static Vector3d | ComponentMin (Vector3d a, Vector3d b) |
| Calculate the component-wise minimum of two vectors More... | |
| static void | ComponentMin (ref Vector3d a, ref Vector3d b, out Vector3d result) |
| Calculate the component-wise minimum of two vectors More... | |
| static Vector3d | ComponentMax (Vector3d a, Vector3d b) |
| Calculate the component-wise maximum of two vectors More... | |
| static void | ComponentMax (ref Vector3d a, ref Vector3d b, out Vector3d result) |
| Calculate the component-wise maximum of two vectors More... | |
| static Vector3d | Min (Vector3d left, Vector3d right) |
| Returns the Vector3d with the minimum magnitude More... | |
| static Vector3d | Max (Vector3d left, Vector3d right) |
| Returns the Vector3d with the minimum magnitude More... | |
| static Vector3d | Clamp (Vector3d vec, Vector3d min, Vector3d max) |
| Clamp a vector to the given minimum and maximum vectors More... | |
| static void | Clamp (ref Vector3d vec, ref Vector3d min, ref Vector3d max, out Vector3d result) |
| Clamp a vector to the given minimum and maximum vectors More... | |
| static Vector3d | Normalize (Vector3d vec) |
| Scale a vector to unit length More... | |
| static void | Normalize (ref Vector3d vec, out Vector3d result) |
| Scale a vector to unit length More... | |
| static Vector3d | NormalizeFast (Vector3d vec) |
| Scale a vector to approximately unit length More... | |
| static void | NormalizeFast (ref Vector3d vec, out Vector3d result) |
| Scale a vector to approximately unit length More... | |
| static double | Dot (Vector3d left, Vector3d right) |
| Calculate the dot (scalar) product of two vectors More... | |
| static void | Dot (ref Vector3d left, ref Vector3d right, out double result) |
| Calculate the dot (scalar) product of two vectors More... | |
| static Vector3d | Cross (Vector3d left, Vector3d right) |
| Caclulate the cross (vector) product of two vectors More... | |
| static void | Cross (ref Vector3d left, ref Vector3d right, out Vector3d result) |
| Caclulate the cross (vector) product of two vectors More... | |
| static Vector3d | Lerp (Vector3d a, Vector3d b, double blend) |
| Returns a new Vector that is the linear blend of the 2 given Vectors More... | |
| static void | Lerp (ref Vector3d a, ref Vector3d b, double blend, out Vector3d result) |
| Returns a new Vector that is the linear blend of the 2 given Vectors More... | |
| static Vector3d | BaryCentric (Vector3d a, Vector3d b, Vector3d c, double u, double v) |
| Interpolate 3 Vectors using Barycentric coordinates More... | |
| static void | BaryCentric (ref Vector3d a, ref Vector3d b, ref Vector3d c, double u, double v, out Vector3d result) |
| Interpolate 3 Vectors using Barycentric coordinates More... | |
| static Vector3d | TransformVector (Vector3d vec, Matrix4d mat) |
| 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. More... | |
| static void | TransformVector (ref Vector3d vec, ref Matrix4d mat, out Vector3d result) |
| 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. More... | |
| static Vector3d | TransformNormal (Vector3d norm, Matrix4d mat) |
| Transform a Normal by the given Matrix More... | |
| static void | TransformNormal (ref Vector3d norm, ref Matrix4d mat, out Vector3d result) |
| Transform a Normal by the given Matrix More... | |
| static Vector3d | TransformNormalInverse (Vector3d norm, Matrix4d invMat) |
| Transform a Normal by the (transpose of the) given Matrix More... | |
| static void | TransformNormalInverse (ref Vector3d norm, ref Matrix4d invMat, out Vector3d result) |
| Transform a Normal by the (transpose of the) given Matrix More... | |
| static Vector3d | TransformPosition (Vector3d pos, Matrix4d mat) |
| Transform a Position by the given Matrix More... | |
| static void | TransformPosition (ref Vector3d pos, ref Matrix4d mat, out Vector3d result) |
| Transform a Position by the given Matrix More... | |
| static Vector3d | Transform (Vector3d vec, Matrix4d mat) |
| Transform a Vector by the given Matrix More... | |
| static void | Transform (ref Vector3d vec, ref Matrix4d mat, out Vector3d result) |
| Transform a Vector by the given Matrix More... | |
| static Vector3d | Transform (Vector3d vec, Quaterniond quat) |
| Transforms a vector by a quaternion rotation. More... | |
| static void | Transform (ref Vector3d vec, ref Quaterniond quat, out Vector3d result) |
| Transforms a vector by a quaternion rotation. More... | |
| static Vector3d | TransformPerspective (Vector3d vec, Matrix4d mat) |
| Transform a Vector3d by the given Matrix, and project the resulting Vector4 back to a Vector3 More... | |
| static void | TransformPerspective (ref Vector3d vec, ref Matrix4d mat, out Vector3d result) |
| Transform a Vector3d by the given Matrix, and project the resulting Vector4d back to a Vector3d More... | |
| static double | CalculateAngle (Vector3d first, Vector3d second) |
| Calculates the angle (in radians) between two vectors. More... | |
| static void | CalculateAngle (ref Vector3d first, ref Vector3d second, out double result) |
| Calculates the angle (in radians) between two vectors. More... | |
| static Vector3d | operator+ (Vector3d left, Vector3d right) |
| Adds two instances. More... | |
| static Vector3d | operator- (Vector3d left, Vector3d right) |
| Subtracts two instances. More... | |
| static Vector3d | operator- (Vector3d vec) |
| Negates an instance. More... | |
| static Vector3d | operator* (Vector3d vec, double scale) |
| Multiplies an instance by a scalar. More... | |
| static Vector3d | operator* (double scale, Vector3d vec) |
| Multiplies an instance by a scalar. More... | |
| static Vector3d | operator/ (Vector3d vec, double scale) |
| Divides an instance by a scalar. More... | |
| static bool | operator== (Vector3d left, Vector3d right) |
| Compares two instances for equality. More... | |
| static bool | operator!= (Vector3d left, Vector3d right) |
| Compares two instances for inequality. More... | |
| static | operator Vector3d (Vector3f v3) |
| Converts makVrl.Vector3 to makVrl.Vector3d. More... | |
| static | operator Vector3f (Vector3d v3d) |
| Converts makVrl.Vector3d to makVrl.Vector3. More... | |
Public Attributes | |
| double | X |
| The X component of the Vector3. More... | |
| double | Y |
| The Y component of the Vector3. More... | |
| double | Z |
| The Z component of the Vector3. More... | |
Static Public Attributes | |
| static readonly Vector3d | UnitX = new Vector3d(1, 0, 0) |
| Defines a unit-length Vector3d that points towards the X-axis. More... | |
| static readonly Vector3d | UnitY = new Vector3d(0, 1, 0) |
| Defines a unit-length Vector3d that points towards the Y-axis. More... | |
| static readonly Vector3d | UnitZ = new Vector3d(0, 0, 1) |
| /// Defines a unit-length Vector3d that points towards the Z-axis. More... | |
| static readonly Vector3d | Zero = new Vector3d(0, 0, 0) |
| Defines a zero-length Vector3. More... | |
| static readonly Vector3d | One = new Vector3d(1, 1, 1) |
| Defines an instance with all components set to 1. More... | |
| static readonly int | SizeInBytes = Marshal.SizeOf(new Vector3d()) |
| Defines the size of the Vector3d struct in bytes. More... | |
Properties | |
| double | this[int index] [get, set] |
| Gets or sets the value at the index of the Vector. More... | |
| double | Length [get] |
| Gets the length (magnitude) of the vector. More... | |
| double | LengthFast [get] |
| Gets an approximation of the vector length (magnitude). More... | |
| double | LengthSquared [get] |
| Gets the square of the vector length (magnitude). More... | |
| Vector2d | Xy [get, set] |
| Gets or sets an makVrl.Vector2d with the X and Y components of this instance. More... | |
| Vector2d | Xz [get, set] |
| Gets or sets an makVrl.Vector2d with the X and Z components of this instance. More... | |
| Vector2d | Yx [get, set] |
| Gets or sets an makVrl.Vector2d with the Y and X components of this instance. More... | |
| Vector2d | Yz [get, set] |
| Gets or sets an makVrl.Vector2d with the Y and Z components of this instance. More... | |
| Vector2d | Zx [get, set] |
| Gets or sets an makVrl.Vector2d with the Z and X components of this instance. More... | |
| Vector2d | Zy [get, set] |
| Gets or sets an makVrl.Vector2d with the Z and Y components of this instance. More... | |
| Vector3d | Xzy [get, set] |
| Gets or sets an makVrl.Vector3d with the X, Z, and Y components of this instance. More... | |
| Vector3d | Yxz [get, set] |
| Gets or sets an makVrl.Vector3d with the Y, X, and Z components of this instance. More... | |
| Vector3d | Yzx [get, set] |
| Gets or sets an makVrl.Vector3d with the Y, Z, and X components of this instance. More... | |
| Vector3d | Zxy [get, set] |
| Gets or sets an makVrl.Vector3d with the Z, X, and Y components of this instance. More... | |
| Vector3d | Zyx [get, set] |
| Gets or sets an makVrl.Vector3d with the Z, Y, and X components of this instance. More... | |
Static Private Attributes | |
| static string | listSeparator = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ListSeparator |
Represents a 3D vector using three double-precision floating-point numbers.
|
inline |
Constructs a new instance.
| value | The value that will initialize this instance. |
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
Referenced by makVrl.Vector3d.Add(), makVrl.Vector3d.Cross(), makVrl.Vector3d.Divide(), makVrl.Vector3d.Equals(), makVrl.Vector3d.Multiply(), makVrl.Vector3d.operator Vector3d(), makVrl.Vector3d.Subtract(), makVrl.Vector3d.TransformNormalInverse(), makVrl.Vector3d.TransformPosition(), and makVrl.Vector3d.TransformVector().
|
inline |
Constructs a new Vector3.
| x | The x component of the Vector3. |
| y | The y component of the Vector3. |
| z | The z component of the Vector3. |
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
|
inline |
Constructs a new instance from the given Vector2d.
| v | The Vector2d to copy components from. |
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
|
inline |
Constructs a new instance from the given Vector3d.
| v | The Vector3d to copy components from. |
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
|
inline |
Constructs a new instance from the given Vector4d.
| v | The Vector4d to copy components from. |
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
|
inline |
Add the Vector passed as parameter to this instance.
| right | Right operand. This parameter is only read from. |
Referenced by makVrl.Vector3d.Add(), and makVrl.Vector3d.BaryCentric().
|
inline |
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. |
References makVrl.Vector3d.Add().
|
inlinestatic |
Adds two vectors.
| a | Left operand. |
| b | Right operand. |
| result | Result of operation. |
References makVrl.Vector3d.Vector3d().
|
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.Vector3d.Add(), makVrl.Vector3d.Multiply(), and makVrl.Vector3d.Subtract().
Calculates the angle (in radians) between two vectors.
| first | The first vector. |
| second | The second vector. |
Note that the returned angle is never bigger than the constant Pi.
|
inlinestatic |
Calculates the angle (in radians) between two vectors.
| first | The first vector. |
| second | The second vector. |
| result | Angle (in radians) between the vectors. |
Note that the returned angle is never bigger than the constant Pi.
Clamp a vector to the given minimum and maximum vectors
| vec | Input vector |
| min | Minimum vector |
| max | Maximum vector |
|
inlinestatic |
Clamp a vector to the given minimum and maximum vectors
| vec | Input vector |
| min | Minimum vector |
| max | Maximum vector |
| result | The clamped vector |
Calculate the component-wise maximum of two vectors
| a | First operand |
| b | Second operand |
|
inlinestatic |
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 |
|
inlinestatic |
Calculate the component-wise minimum of two vectors
| a | First operand |
| b | Second operand |
| result | The component-wise minimum |
Caclulate the cross (vector) product of two vectors
| left | First operand |
| right | Second operand |
Referenced by makVrl.Quaterniond.Mult(), and makVrl.Quaterniond.Multiply().
|
inlinestatic |
Caclulate the cross (vector) product of two vectors
| left | First operand |
| right | Second operand |
| result | The cross product of the two inputs |
References makVrl.Vector3d.Vector3d().
|
inline |
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. |
Referenced by makVrl.Vector3d.Divide().
|
inlinestatic |
Divides a vector by a scalar.
| vector | Left operand. |
| scale | Right operand. |
| result | Result of the operation. |
References makVrl.Vector3d.Multiply().
Divides a vector by the components of a vector (scale).
| vector | Left operand. |
| scale | Right operand. |
References makVrl.Vector3d.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.Vector3d.Vector3d().
Calculate the dot (scalar) product of two vectors
| left | First operand |
| right | Second operand |
Referenced by makVrl.Vector3d.TransformNormalInverse(), makVrl.Vector3d.TransformPosition(), and makVrl.Vector3d.TransformVector().
|
inlinestatic |
Calculate the dot (scalar) 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. |
References makVrl.Vector3d.Vector3d().
|
inline |
Indicates whether the current vector is equal to another vector.
| other | A vector to compare with this vector. |
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
|
inline |
Returns the hashcode for this instance.
References makVrl.Vector3d.Y.
Referenced by makVrl.Matrix3d.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.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.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 |
Returns the Vector3d with the minimum magnitude
| left | Left operand |
| right | Right operand |
Returns the Vector3d with the minimum magnitude
| left | Left operand |
| right | Right operand |
|
inline |
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. |
Referenced by makVrl.Vector3d.BaryCentric(), makVrl.Vector3d.Divide(), and makVrl.Vector3d.Multiply().
|
inlinestatic |
Multiplies a vector by a scalar.
| vector | Left operand. |
| scale | Right operand. |
| result | Result of the operation. |
References makVrl.Vector3d.Vector3d().
Multiplies a vector by the components a vector (scale).
| vector | Left operand. |
| scale | Right operand. |
References makVrl.Vector3d.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.Vector3d.Vector3d().
|
inline |
Scales the Vector3d to unit length.
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
Scale a vector to unit length
| vec | The input vector |
Scale a vector to unit length
| vec | The input vector |
| result | The normalized vector |
|
inline |
Returns a copy of the Vector3d scaled to unit length.
|
inline |
Scales the Vector3d to approximately unit length.
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
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 |
Converts makVrl.Vector3 to makVrl.Vector3d.
| v3 | The Vector3 to convert. |
References makVrl.Vector3d.Vector3d(), makVrl.Vector3f.X, makVrl.Vector3f.Y, and makVrl.Vector3f.Z.
Converts makVrl.Vector3d to makVrl.Vector3.
| v3d | The Vector3d to convert. |
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
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. |
|
inline |
Scales the current Vector3d 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. |
References makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
|
inline |
Scales this instance by the given parameter.
| scale | The scaling of the individual components. |
|
inline |
Scales this instance by the given parameter.
| scale | The scaling of the individual components. |
|
inline |
Subtract the Vector passed as parameter from this instance.
| right | Right operand. This parameter is only read from. |
|
inline |
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 |
|
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.Vector3d.BaryCentric().
|
inlinestatic |
Subtract one Vector from another
| a | First operand |
| b | Second operand |
| result | Result of subtraction |
References makVrl.Vector3d.Vector3d().
|
inline |
Returns a System.String that represents the current Vector3.
References makVrl.Vector3d.listSeparator, makVrl.Vector3d.X, makVrl.Vector3d.Y, and makVrl.Vector3d.Z.
Transform a Vector by the given Matrix
| vec | The vector to transform |
| mat | The desired transformation |
Referenced by makVrl.Vector3d.Transform().
|
inlinestatic |
Transform a Vector by the given Matrix
| vec | The vector to transform |
| mat | The desired transformation |
| result | The transformed vector |
|
inlinestatic |
Transforms a vector by a quaternion rotation.
| vec | The vector to transform. |
| quat | The quaternion to rotate the vector by. |
References makVrl.Vector3d.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. |
Transform a Normal by the given Matrix
This calculates the inverse of the given matrix, use TransformNormalInverse if you already have the inverse to avoid this extra calculation
| norm | The normal to transform |
| mat | The desired transformation |
References makVrl.Vector3d.TransformNormalInverse().
|
inlinestatic |
Transform a Normal by the given Matrix
This calculates the inverse of the given matrix, use TransformNormalInverse if you already have the inverse to avoid this extra calculation
| norm | The normal to transform |
| mat | The desired transformation |
| result | The transformed normal |
|
inlinestatic |
Transform a Normal by the (transpose of the) given Matrix
This version doesn't calculate the inverse matrix. Use this version if you already have the inverse of the desired transform to hand
| norm | The normal to transform |
| invMat | The inverse of the desired transformation |
References makVrl.Vector3d.Dot(), makVrl.Matrix4d.Row0, makVrl.Matrix4d.Row1, makVrl.Matrix4d.Row2, and makVrl.Vector3d.Vector3d().
Referenced by makVrl.Vector3d.TransformNormal().
|
inlinestatic |
Transform a Normal by the (transpose of the) given Matrix
This version doesn't calculate the inverse matrix. Use this version if you already have the inverse of the desired transform to hand
| norm | The normal to transform |
| invMat | The inverse of the desired transformation |
| result | The transformed normal |
Transform a Position by the given Matrix
| pos | The position to transform |
| mat | The desired transformation |
References makVrl.Matrix4d.Column0, makVrl.Matrix4d.Column1, makVrl.Matrix4d.Column2, makVrl.Vector3d.Dot(), makVrl.Matrix4d.Row3, makVrl.Vector3d.Vector3d(), and makVrl.Vector4d.Y.
|
inlinestatic |
Transform a Position by the given Matrix
| pos | The position to transform |
| mat | The desired transformation |
| result | The transformed position |
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.
| vec | The vector to transform |
| mat | The desired transformation |
References makVrl.Matrix4d.Column0, makVrl.Matrix4d.Column1, makVrl.Matrix4d.Column2, makVrl.Vector3d.Dot(), and makVrl.Vector3d.Vector3d().
|
inlinestatic |
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.
| vec | The vector to transform |
| mat | The desired transformation |
| result | The transformed vector |
|
staticprivate |
Referenced by makVrl.Vector3d.ToString().
Defines an instance with all components set to 1.
|
static |
Defines the size of the Vector3d struct in bytes.
Defines a unit-length Vector3d that points towards the X-axis.
Referenced by makVrl.Quaterniond.ToAxisAngle().
Defines a unit-length Vector3d that points towards the Y-axis.
/// Defines a unit-length Vector3d that points towards the Z-axis.
| double makVrl.Vector3d.X |
The X component of the Vector3.
Referenced by makVrl.Matrix4d.CreateFromAxisAngle(), makVrl.Matrix4d.CreateTranslation(), f18.VehicleSim.detonateMunition(), makVrl.Vector3d.Equals(), makVrl.ReferenceEllipsoid.geodeticToGeocentric(), makVrl.Vector3d.Lerp(), makVrl.Matrix4d.LookAt(), makVrl.Vector3d.Normalize(), makVrl.Vector3d.NormalizeFast(), makVrl.TaitBryan.operator TaitBryan(), makVrl.Vector3d.operator Vector3f(), makVrl.Matrix4d.Rotate(), makVrl.Vector3d.Scale(), makVrl.Matrix4d.Scale(), f18.VehicleSim.simTick(), makVrl.Quaterniond.ToAxisAngle(), makVrl.Vector3d.ToString(), makVrl.Matrix4d.Translation(), and makVrl.Vector3d.Vector3d().
| double makVrl.Vector3d.Y |
The Y component of the Vector3.
Referenced by makVrl.Matrix4d.CreateFromAxisAngle(), makVrl.Matrix4d.CreateTranslation(), f18.VehicleSim.detonateMunition(), makVrl.Vector3d.Equals(), makVrl.ReferenceEllipsoid.geodeticToGeocentric(), makVrl.Vector3d.GetHashCode(), makVrl.Vector3d.Lerp(), makVrl.Matrix4d.LookAt(), makVrl.Vector3d.Normalize(), makVrl.Vector3d.NormalizeFast(), makVrl.TaitBryan.operator TaitBryan(), makVrl.Vector3d.operator Vector3f(), makVrl.Matrix4d.Rotate(), makVrl.Vector3d.Scale(), makVrl.Matrix4d.Scale(), f18.VehicleSim.simTick(), makVrl.Vector3d.ToString(), makVrl.Matrix4d.Translation(), and makVrl.Vector3d.Vector3d().
| double makVrl.Vector3d.Z |
The Z component of the Vector3.
Referenced by makVrl.Matrix4d.CreateFromAxisAngle(), makVrl.Matrix4d.CreateTranslation(), f18.VehicleSim.detonateMunition(), makVrl.Vector3d.Equals(), makVrl.ReferenceEllipsoid.geodeticToGeocentric(), makVrl.Vector3d.Lerp(), makVrl.Matrix4d.LookAt(), makVrl.Vector3d.Normalize(), makVrl.Vector3d.NormalizeFast(), makVrl.TaitBryan.operator TaitBryan(), makVrl.Vector3d.operator Vector3f(), makVrl.Matrix4d.Rotate(), makVrl.Vector3d.Scale(), makVrl.Matrix4d.Scale(), f18.VehicleSim.simTick(), makVrl.Quaterniond.ToAxisAngle(), makVrl.Vector3d.ToString(), makVrl.Matrix4d.Translation(), and makVrl.Vector3d.Vector3d().
Defines a zero-length Vector3.
Referenced by makVrl.Matrix4d.ClearTranslation(), makVrl.EntityStateRepository.EntityStateRepository(), makVrl.GeodeticCoord.GeodeticCoord(), makVrl.CoordinateTransform.inverse(), makVrl.laserDesignatorStateRepository.laserDesignatorStateRepository(), makVrl.Smoother.resetPosSmoother(), makVrl.TransmitterStateRepository.TransmitterStateRepository(), and makVrl.UtmCoordinate.UtmCoordinate().
|
get |
Gets the length (magnitude) of the vector.
Referenced by makVrl.Matrix3d.ClearRotation(), makVrl.Matrix4d.ClearRotation(), makVrl.Matrix3d.ExtractScale(), and makVrl.Matrix4d.ExtractScale().
|
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.
Referenced by makVrl.Quaterniond.FromAxisAngle().
|
getset |
Gets or sets the value at the index of the Vector.
|
getset |
Gets or sets an makVrl.Vector2d with the X and Y components of this instance.
|
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 Y 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 Z 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 X 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 Y 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 X components of this instance.