![]() |
TrinityCore
|
#include <Vector2.h>
Static Public Member Functions | |
| static Vector2 | random (Random &r=Random::common()) |
| static const Vector2 & | zero () |
| static const Vector2 & | one () |
| static const Vector2 & | unitX () |
| static const Vector2 & | unitY () |
| static const Vector2 & | inf () |
| static const Vector2 & | nan () |
| static const Vector2 & | minFinite () |
| static const Vector2 & | maxFinite () |
Public Attributes | |
| float | x |
| float | y |
Private Member Functions | |
| bool | operator< (const Vector2 &) const |
| bool | operator> (const Vector2 &) const |
| bool | operator<= (const Vector2 &) const |
| bool | operator>= (const Vector2 &) const |
Do not subclass– this implementation makes assumptions about the memory layout.
Here is the call graph for this function:
|
inline |
Creates the zero vector
Here is the caller graph for this function:| G3D::Vector2::Vector2 | ( | class TextInput & | t | ) |
| G3D::Vector2::Vector2 | ( | class BinaryInput & | b | ) |
Here is the call graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
explicit |
|
inline |
Componentwise absolute value
Here is the call graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Here is the call graph for this function:| void G3D::Vector2::deserialize | ( | class BinaryInput & | b | ) |
Here is the call graph for this function:
Here is the caller graph for this function:| void G3D::Vector2::deserialize | ( | class TextInput & | t | ) |
Here is the call graph for this function:
|
inline |
Returns a unit-length version of this vector. Returns nan if length is almost zero.
Here is the caller graph for this function:
|
inline |
Returns Vector2::zero() is magnitude is almost zero, otherwise returns unit-length vector.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Potentially less accurate but faster than direction(). Only works if System::hasSSE is true.
Here is the call graph for this function:
Here is the call graph for this function:
Here is the call graph for this function:| size_t G3D::Vector2::hashCode | ( | ) | const |
Here is the caller graph for this function:
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Returns true if this vector has finite length
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
True if any field is NaN
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Returns true if this vector has length == 1
Here is the call graph for this function:
|
inline |
Returns true if this vector has length == 0
Here is the call graph for this function:
|
inline |
Magnitude of the vector
Here is the caller graph for this function:Component-wise maximum
Here is the call graph for this function:
Here is the caller graph for this function:Largest representable vector
Component-wise minimum
Here is the call graph for this function:
Here is the caller graph for this function:smallest (most negative) representable vector
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
Here is the call graph for this function:
|
inline |
Unary minus
Here is the call graph for this function:| Vector2 G3D::Vector2::operator/ | ( | float | s | ) | const |
| Vector2 & G3D::Vector2::operator/= | ( | float | k | ) |
Here is the call graph for this function:
|
inline |
|
inline |
Raise each component of this vector to a power
Here is the call graph for this function:
|
static |
Uniformly distributed random vector on the unit sphere
Here is the call graph for this function:| void G3D::Vector2::serialize | ( | class BinaryOutput & | b | ) | const |
Here is the call graph for this function:
Here is the caller graph for this function:| void G3D::Vector2::serialize | ( | class TextOutput & | t | ) | const |
Here is the call graph for this function:
|
inline |
Here is the caller graph for this function:
|
inline |
x + y
| Any G3D::Vector2::toAny | ( | ) | const |
| std::string G3D::Vector2::toString | ( | ) | const |
Here is the call graph for this function:| Vector2 G3D::Vector2::xx | ( | ) | const |
Here is the call graph for this function:| Vector3 G3D::Vector2::xxx | ( | ) | const |
| Vector4 G3D::Vector2::xxxx | ( | ) | const |
| Vector4 G3D::Vector2::xxxy | ( | ) | const |
| Vector3 G3D::Vector2::xxy | ( | ) | const |
| Vector4 G3D::Vector2::xxyx | ( | ) | const |
| Vector4 G3D::Vector2::xxyy | ( | ) | const |
| Vector2 G3D::Vector2::xy | ( | ) | const |
Here is the call graph for this function:
Here is the caller graph for this function:| Vector3 G3D::Vector2::xyx | ( | ) | const |
| Vector4 G3D::Vector2::xyxx | ( | ) | const |
| Vector4 G3D::Vector2::xyxy | ( | ) | const |
| Vector3 G3D::Vector2::xyy | ( | ) | const |
| Vector4 G3D::Vector2::xyyx | ( | ) | const |
| Vector4 G3D::Vector2::xyyy | ( | ) | const |
| Vector2 G3D::Vector2::yx | ( | ) | const |
Here is the call graph for this function:
Here is the caller graph for this function:| Vector3 G3D::Vector2::yxx | ( | ) | const |
| Vector4 G3D::Vector2::yxxx | ( | ) | const |
| Vector4 G3D::Vector2::yxxy | ( | ) | const |
| Vector3 G3D::Vector2::yxy | ( | ) | const |
| Vector4 G3D::Vector2::yxyx | ( | ) | const |
| Vector4 G3D::Vector2::yxyy | ( | ) | const |
| Vector2 G3D::Vector2::yy | ( | ) | const |
Here is the call graph for this function:| Vector3 G3D::Vector2::yyx | ( | ) | const |
| Vector4 G3D::Vector2::yyxx | ( | ) | const |
| Vector4 G3D::Vector2::yyxy | ( | ) | const |
| Vector3 G3D::Vector2::yyy | ( | ) | const |
| Vector4 G3D::Vector2::yyyx | ( | ) | const |
| Vector4 G3D::Vector2::yyyy | ( | ) | const |
Here is the caller graph for this function:| float G3D::Vector2::x |
| float G3D::Vector2::y |
1.8.8