|
union { |
T x |
|
T r |
|
T u |
|
T s |
|
}; | |
|
union { |
T y |
|
T g |
|
T v |
|
T t |
|
}; | |
|
union { |
T z |
|
T b |
|
T w |
|
}; | |
|
|
static bool | OCULAR_INTERNAL_Force |
|
This is equivalent to taking the acos of the dot product.
The returned angle is the acute angle, i.e the smallest of the two angles.
- Parameters
-
[in] | rhs | The second vector to calculate the angle with |
- Returns
- The angle, in radians, between the vectors
The cross product is a third vector that is perpendicular to the two original vectors.
- Note
- Order is important for cross product
- Parameters
-
[in] | rhs | The second vector to cross multiply with |
- Returns
- The cross product of the two vectors
- Parameters
-
[in] | rhs | The second vector to calculate the distance with |
- Returns
- The distance between the two vectors
The dot product is a value equal to the magnitudes of the two vectors multiplied together and then multiplied by the cosine of the angle between them.
- Parameters
-
[in] | rhs | The second vector dot multiply with |
- Returns
- The dot product of the two vectors (in radians)
- Returns
- The length of the vector.
- Returns
- The magnitude (length) of the vector.
Returns the normalized form of this vector
Linearly interpolates the two vectors using the specified fraction.
When fraction == 0
, the return is equal to from
. When fraction == 1
, the return is equal to to
.
- Parameters
-
[in] | from | The 'start' vector. |
[in] | to | The 'end' vector. |
[in] | fraction | The fraction to interpolate by. |
- Returns
- The resultant interpolated vector.
Calculates the midpoint of the two provided points.
- Parameters
-
- Returns
- The midpoint vector
Normalizes the vector.
When normalized, a vector maintains its direction but its magnitude is set to 1.0.
- Note
- This method modifies the internal data stored in the vector. See getNormalized if this is not desired.
Spherically interpolates the two vectors using the specified fraction.
When slerping, the vectors are treated as directions as opposed to points in space (as in lerp). The resultant direction is interpolated by the angle between the vectors, and the magnitude is interpolated by those of the two input vectors.
- Parameters
-
[in] | from | The 'start' vector. |
[in] | to | The 'end' vector. |
[in] | fraction | The fraction to interpolate by. |
- Returns
- The resultant interpolated vector.
The documentation for this class was generated from the following files:
- C:/Projects/OcularEngine/OcularCore/include/Math/Euler.hpp
- C:/Projects/OcularEngine/OcularCore/include/Math/Vector3.hpp