#include <OVR_Math.h>
Public Member Functions | |
T | Angle (const Vector2 &b) const |
bool | Compare (const Vector2 &b, T tolerance=Mathf::Tolerance) |
T | Distance (Vector2 &b) const |
bool | IsNormalized () const |
T | Length () const |
T | LengthSq () const |
Vector2 | Lerp (const Vector2 &b, T f) const |
void | Normalize () |
Vector2 | Normalized () const |
bool | operator!= (const Vector2 &b) const |
Vector2 | operator* (T s) const |
T | operator* (const Vector2 &b) const |
Vector2 & | operator*= (T s) |
Vector2 | operator+ (const Vector2 &b) const |
Vector2 & | operator+= (const Vector2 &b) |
Vector2 | operator- (const Vector2 &b) const |
Vector2 | operator- () const |
Vector2 & | operator-= (const Vector2 &b) |
Vector2 | operator/ (T s) const |
Vector2 & | operator/= (T s) |
bool | operator== (const Vector2 &b) const |
Vector2 | ProjectTo (const Vector2 &b) const |
Vector2 () | |
Vector2 (T x_, T y_) | |
Vector2 (T s) | |
Public Attributes | |
T | x |
T | y |
Definition at line 148 of file OVR_Math.h.
OVR::Vector2< T >::Vector2 | ( | ) | [inline] |
Definition at line 153 of file OVR_Math.h.
OVR::Vector2< T >::Vector2 | ( | T | x_, |
T | y_ | ||
) | [inline] |
Definition at line 154 of file OVR_Math.h.
OVR::Vector2< T >::Vector2 | ( | T | s | ) | [inline, explicit] |
Definition at line 155 of file OVR_Math.h.
T OVR::Vector2< T >::Angle | ( | const Vector2< T > & | b | ) | const [inline] |
Definition at line 188 of file OVR_Math.h.
bool OVR::Vector2< T >::Compare | ( | const Vector2< T > & | b, |
T | tolerance = Mathf::Tolerance |
||
) | [inline] |
Definition at line 177 of file OVR_Math.h.
T OVR::Vector2< T >::Distance | ( | Vector2< T > & | b | ) | const [inline] |
Definition at line 196 of file OVR_Math.h.
bool OVR::Vector2< T >::IsNormalized | ( | ) | const [inline] |
Definition at line 199 of file OVR_Math.h.
T OVR::Vector2< T >::Length | ( | ) | const [inline] |
Definition at line 193 of file OVR_Math.h.
T OVR::Vector2< T >::LengthSq | ( | ) | const [inline] |
Definition at line 191 of file OVR_Math.h.
Vector2 OVR::Vector2< T >::Lerp | ( | const Vector2< T > & | b, |
T | f | ||
) | const [inline] |
Definition at line 207 of file OVR_Math.h.
void OVR::Vector2< T >::Normalize | ( | ) | [inline] |
Definition at line 201 of file OVR_Math.h.
Vector2 OVR::Vector2< T >::Normalized | ( | ) | const [inline] |
Definition at line 203 of file OVR_Math.h.
bool OVR::Vector2< T >::operator!= | ( | const Vector2< T > & | b | ) | const [inline] |
Definition at line 158 of file OVR_Math.h.
Vector2 OVR::Vector2< T >::operator* | ( | T | s | ) | const [inline] |
Definition at line 167 of file OVR_Math.h.
T OVR::Vector2< T >::operator* | ( | const Vector2< T > & | b | ) | const [inline] |
Definition at line 185 of file OVR_Math.h.
Vector2& OVR::Vector2< T >::operator*= | ( | T | s | ) | [inline] |
Definition at line 168 of file OVR_Math.h.
Vector2 OVR::Vector2< T >::operator+ | ( | const Vector2< T > & | b | ) | const [inline] |
Definition at line 160 of file OVR_Math.h.
Vector2& OVR::Vector2< T >::operator+= | ( | const Vector2< T > & | b | ) | [inline] |
Definition at line 161 of file OVR_Math.h.
Vector2 OVR::Vector2< T >::operator- | ( | const Vector2< T > & | b | ) | const [inline] |
Definition at line 162 of file OVR_Math.h.
Vector2 OVR::Vector2< T >::operator- | ( | ) | const [inline] |
Definition at line 164 of file OVR_Math.h.
Vector2& OVR::Vector2< T >::operator-= | ( | const Vector2< T > & | b | ) | [inline] |
Definition at line 163 of file OVR_Math.h.
Vector2 OVR::Vector2< T >::operator/ | ( | T | s | ) | const [inline] |
Definition at line 170 of file OVR_Math.h.
Vector2& OVR::Vector2< T >::operator/= | ( | T | s | ) | [inline] |
Definition at line 172 of file OVR_Math.h.
bool OVR::Vector2< T >::operator== | ( | const Vector2< T > & | b | ) | const [inline] |
Definition at line 157 of file OVR_Math.h.
Vector2 OVR::Vector2< T >::ProjectTo | ( | const Vector2< T > & | b | ) | const [inline] |
Definition at line 211 of file OVR_Math.h.
T OVR::Vector2< T >::x |
Definition at line 151 of file OVR_Math.h.
T OVR::Vector2< T >::y |
Definition at line 151 of file OVR_Math.h.