|
const About & | about () const |
|
| operator std::string () const |
|
bool | operator== (const Vec2 &b) const |
|
bool | normalized () const |
|
bool | zero () const |
|
Vec2 & | operator() (int i, float value) |
|
float | operator() (int i) const |
|
Vec2 & | x (const float &value) |
|
float | x () const |
|
Vec2 & | y (const float &value) |
|
float | y () const |
|
Vec2 | operator- () const |
|
Vec2 & | operator+= (const Vec2 &b) |
|
Vec2 & | operator-= (const Vec2 &b) |
|
Vec2 & | operator*= (const Vec2 &b) |
|
Vec2 & | operator*= (const float &k) |
|
Vec2 & | operator/= (const Vec2 &b) |
|
Vec2 & | operator/= (const float &k) |
|
Vec2 | operator+ (const Vec2 &b) const |
|
Vec2 | operator- (const Vec2 &b) const |
|
Vec2 | operator* (const Vec2 &b) const |
|
Vec2 | operator* (const float &k) const |
|
Vec2 | operator/ (const Vec2 &b) const |
|
Vec2 | operator/ (const float &k) const |
|
float | angle (const Vec2 &b) const |
|
float | distance (const Vec2 &b) const |
|
float | dot (const Vec2 &b) const |
|
float | length () const |
|
float | lengthSquared () const |
|
Vec2 & | abs () |
|
Vec2 | absCopy () const |
|
Vec2 & | clamp (float min, float max) |
|
Vec2 | clampCopy (float min, float max) const |
|
Vec2 & | clamp (const Vec2 &min, const Vec2 &max) |
|
Vec2 | clampCopy (const Vec2 &min, const Vec2 &max) const |
|
Vec2 & | lerp (const Vec2 &b, float s) |
|
Vec2 | lerpCopy (const Vec2 &b, float s) const |
|
Vec2 & | max (const Vec2 &b) |
|
Vec2 | maxCopy (const Vec2 &b) const |
|
Vec2 & | min (const Vec2 &b) |
|
Vec2 | minCopy (const Vec2 &b) const |
|
Vec2 & | normalize () |
|
Vec2 | normalizeCopy () const |
|
Vec2 & | round () |
|
Vec2 | roundCopy () const |
|
Vec2 & | reflect (const Vec2 &normal) |
|
Vec2 | reflectCopy (const Vec2 &normal) const |
|
Vec2 & | refract (const Vec2 &normal, float eta) |
|
Vec2 | refractCopy (const Vec2 &normal, float eta) const |
|
Vec2 & | slerp (const Vec2 &b, float s) |
|
Vec2 | slerpCopy (const Vec2 &b, float s) const |
|
Vec2 & | transform (const Mat4 &) |
|
Vec2 | transformCopy (const Mat4 &) const |
|
Vec2 & | truncate (float length) |
|
Vec2 | truncateCopy (float length) const |
|
Class for working with Euclidean vectors in 2D-space.
- See Also
- Vec3
- Since
- 4.7