|
| union { |
| struct { |
| float x |
| |
| float y |
| |
| float z |
| |
| } | |
| |
| float data [3] |
| |
| }; | |
| |
| Legion::Vector3f::Vector3f |
( |
| ) |
|
| Legion::Vector3f::Vector3f |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
| Legion::Vector3f::Vector3f |
( |
const float * |
tuple | ) |
|
| Legion::Vector3f::Vector3f |
( |
const Vector3f & |
other | ) |
|
| Legion::Vector3f::Vector3f |
( |
const Vector3d & |
other | ) |
|
| float Legion::Vector3f::angleBetween |
( |
const Vector3f & |
v | ) |
const |
|
inline |
Calculates the angle between this vector and another one in grad.
| float Legion::Vector3f::distanceFrom |
( |
const Vector3f & |
vec | ) |
const |
|
inline |
| float Legion::Vector3f::distanceFromSquared |
( |
const Vector3f & |
vec | ) |
const |
|
inline |
| float Legion::Vector3f::dot |
( |
const Vector3f & |
vec | ) |
const |
|
inline |
returns interpolated vector
- Parameters
-
| other,: | other vector to interpolate between |
| d,: | value between 0.0f and 1.0f. |
| void Legion::Vector3f::invert |
( |
| ) |
|
|
inline |
| bool Legion::Vector3f::isBetweenPoints |
( |
const Vector3f & |
begin, |
|
|
const Vector3f & |
end |
|
) |
| const |
|
inline |
Returns if this vector interpreted as a point is on a line between two other points.
It is assumed that the point is on the line.
- Parameters
-
| begin,: | Beginning vector to compare between. |
| end,: | Ending vector to compare between. |
- Returns
- True if this vector is between begin and end. False if not.
| bool Legion::Vector3f::isZero |
( |
| ) |
|
|
inline |
| float Legion::Vector3f::length |
( |
| ) |
const |
|
inline |
| float Legion::Vector3f::lengthSquared |
( |
| ) |
const |
|
inline |
| float Legion::Vector3f::normalize |
( |
| ) |
|
|
inline |
| bool Legion::Vector3f::operator!= |
( |
const Vector3f & |
vec | ) |
const |
|
inline |
| Vector3f Legion::Vector3f::operator* |
( |
float |
scalar | ) |
const |
|
inline |
| Vector3f& Legion::Vector3f::operator*= |
( |
float |
scalar | ) |
|
|
inline |
| Vector3f Legion::Vector3f::operator- |
( |
| ) |
const |
|
inline |
| Vector3f Legion::Vector3f::operator/ |
( |
float |
scalar | ) |
const |
|
inline |
| Vector3f& Legion::Vector3f::operator/= |
( |
float |
scalar | ) |
|
|
inline |
| bool Legion::Vector3f::operator< |
( |
const Vector3f & |
vec | ) |
const |
|
inline |
| bool Legion::Vector3f::operator<= |
( |
const Vector3f & |
vec | ) |
const |
|
inline |
| bool Legion::Vector3f::operator== |
( |
const Vector3f & |
vec | ) |
const |
|
inline |
| bool Legion::Vector3f::operator> |
( |
const Vector3f & |
vec | ) |
const |
|
inline |
| bool Legion::Vector3f::operator>= |
( |
const Vector3f & |
vec | ) |
const |
|
inline |
| void Legion::Vector3f::setLength |
( |
float |
newLength | ) |
|
|
inline |
| float Legion::Vector3f::data[3] |
| float Legion::Vector3f::x |
| float Legion::Vector3f::y |
| float Legion::Vector3f::z |
The documentation for this class was generated from the following file: