|
| vec4D | Build (const vec4D &from, const vec4D &to) const |
| | Build a direction vector from from to to with W set to 1.
|
| vec4D | Build (const vec4D &from, const vec4D &to) const |
| | Build a direction vector from from to to with W set to 0.
|
| void | Build (const vec4D &to) |
| | Replace this vector with the direction from this point to to.
|
| void | Build (const vec4D &to) |
| | Replace this vector with the direction from this point to to.
|
| float | Cos (const vec4D &v) const |
| | Compute the cosine of the angle between the 3D components of two vectors.
|
| float | Cos (const vec4D &v) const |
| | Compute the cosine of the angle between the 3D components of two vectors.
|
| constexpr vec4D | CrossProduct (const vec4D &v) const |
| | Compute the 3D cross product and return it with W set to 1.
|
| vec4D | CrossProduct (const vec4D &v) const |
| | Compute the 3D cross product and return it as a direction with W set to 0.
|
| constexpr float | DotProduct (const vec4D &v) const |
| | Compute the 3D dot product, ignoring the W component.
|
| float | DotProduct (const vec4D &v) const |
| | Compute the 3D dot product, ignoring the W component.
|
| float | Length () const |
| | Compute the 3D Euclidean length, ignoring the W component.
|
| float | Length () const |
| | Compute the 3D Euclidean length, ignoring the W component.
|
| void | Normalize () |
| | Normalize the 3D components in place and reset W to 1.
|
| void | Normalize () |
| | Normalize the 3D components in place while preserving W.
|
| void | Normalize (vec4D &v) const |
| | Write a normalized copy of this vector to v.
|
| void | Normalize (vec4D &v) const |
| | Write a normalized copy of this vector to v.
|
| constexpr vec4D | operator* (const vec4D &v) const |
| | Multiply two vectors component-wise.
|
| vec4D | operator* (const vec4D &v) const |
| | Multiply two vectors component-wise.
|
| constexpr vec4D | operator* (float k) const |
| | Scale this vector by a scalar.
|
| vec4D | operator* (float k) const |
| | Scale this vector by a scalar.
|
| constexpr vec4D | operator+ (const vec4D &v) const |
| | Add two vectors component-wise.
|
| vec4D | operator+ (const vec4D &v) const |
| | Add two vectors component-wise.
|
| vec4D & | operator+= (const vec4D &v) |
| | Add another vector to this vector.
|
| vec4D & | operator+= (const vec4D &v) |
| | Add another vector to this vector.
|
| constexpr vec4D | operator- (const vec4D &v) const |
| | Subtract two vectors component-wise.
|
| vec4D | operator- (const vec4D &v) const |
| | Subtract two vectors component-wise.
|
| vec4D & | operator-= (const vec4D &v) |
| | Subtract another vector from this vector.
|
| vec4D & | operator-= (const vec4D &v) |
| | Subtract another vector from this vector.
|
| vec4D & | operator= (const vec4D &)=default |
| vec4D & | operator= (const vec4D &)=default |
| std::string | Print (const std::string &name="v") const |
| | Format this vector as a named angle-bracket tuple.
|
| std::string | Print (const std::string &name="v") const |
| | Format this vector as a named angle-bracket tuple.
|
| vec4D | Scale (float k) const |
| | Return a scaled copy of this vector.
|
| vec4D | Scale (float k) const |
| | Return a scaled copy of this vector.
|
| void | ScaleThis (float k) |
| | Scale this vector in place.
|
| void | ScaleThis (float k) |
| | Scale this vector in place.
|
| void | Set (const vec4D &v) |
| | Copy coordinates from another vector.
|
| void | Set (const vec4D &v) |
| | Copy coordinates from another vector.
|
| void | Set (float x_value, float y_value, float z_value, float w_value=1.0f) |
| | Set all vector coordinates.
|
| void | Set (float x_value, float y_value, float z_value, float w_value=1.0f) |
| | Set all vector coordinates.
|
| constexpr | vec4D () |
| | Construct the homogeneous origin.
|
| constexpr | vec4D () |
| | Construct the homogeneous origin.
|
| constexpr | vec4D (float x_value, float y_value, float z_value, float w_value=1.0f) |
| | Construct a homogeneous vector from explicit coordinates.
|
| constexpr | vec4D (float x_value, float y_value, float z_value, float w_value=1.0f) |
| | Construct a homogeneous vector from explicit coordinates.
|
Four-dimensional float vector used for homogeneous 3D coordinates.
Definition at line 416 of file mxvk_math.h.