EHS
|
#include <Vec2.h>
Public Member Functions | |
Vec2 (const T x, const T y) | |
template<typename C > | |
Vec2 (const Vec2< C > &vec) | |
Vec2 (const T scalar=0) | |
template<typename C > | |
Vec2< T > & | operator= (const Vec2< C > &vec) |
bool | operator== (const Vec2< T > &vec) const |
bool | operator!= (const Vec2< T > &vec) const |
Vec2< T > & | operator+= (const Vec2< T > &vec) |
Vec2< T > | operator+ (const Vec2< T > &vec) const |
Vec2< T > & | operator+= (const T scalar) |
Vec2< T > | operator+ (const T scalar) const |
Vec2< T > & | operator-= (const Vec2< T > &vec) |
Vec2< T > | operator- (const Vec2< T > &vec) const |
Vec2< T > & | operator-= (const T scalar) |
Vec2< T > | operator- (const T scalar) const |
Vec2< T > & | operator/= (const Vec2< T > &vec) |
Vec2< T > | operator/ (const Vec2< T > &vec) const |
Vec2< T > & | operator/= (const T scalar) |
Vec2< T > | operator/ (const T scalar) const |
Vec2< T > & | operator*= (const Vec2< T > &vec) |
Vec2< T > | operator* (const Vec2< T > &vec) const |
Vec2< T > & | operator*= (const T scalar) |
Vec2< T > | operator* (const T scalar) const |
bool | operator<= (const Vec2< T > &other) const |
bool | operator< (const Vec2< T > &other) const |
bool | operator>= (const Vec2< T > &other) const |
bool | operator> (const Vec2< T > &other) const |
Vec2 | operator- () |
T | operator[] (const UInt_64 index) const |
T & | operator[] (const UInt_64 index) |
Vec2< T > | GetAbs () const |
void | Abs () |
T | GetDot (const Vec2< T > &vec) const |
T | GetAngle (const Vec2< T > &vec) const |
Vec2< T > | GetProjection (const Vec2< T > &length) const |
Vec2< T > | GetPerpendicular (const Vec2< T > &length) const |
Vec2< T > | GetReflection (const Vec2< T > &normal) const |
T | GetMagnitude () const |
T | GetMagnitude2 () const |
T | GetDistance (const Vec2< T > &vec) const |
T | GetDistance2 (const Vec2< T > &vec) const |
Vec2< T > | GetNorm () const |
void | Norm () |
Vec2< T > | GetRads () const |
void | ToRads () |
Vec2< T > | GetDegr () const |
void | ToDegr () |
Static Public Member Functions | |
static Vec2 | Lerp (const Vec2 &start, const Vec2 &finish, const T t) |
Public Attributes | |
T | x |
T | y |
|
inline |
|
inline |
|
inline |
|
inline |
If positive, the vectors are pointing in the same direction. If negative, the vectors are pointing in opposing directions. If zero, the vectors are perpendicular.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
T ehs::Vec2< T >::x |
T ehs::Vec2< T >::y |