liballofw
|
#include <vector.h>
Public Types | |
typedef T | number_t |
Public Member Functions | |
Vector2_ ()=default | |
template<typename number_from_t > | |
Vector2_ (const Vector2_< number_from_t > &v) | |
Vector2_ (number_t v) | |
Vector2_ (number_t x_, number_t y_) | |
template<typename OtherT > | |
Vector2_ (const OtherT &other) | |
Vector2_ & | operator+= (const Vector2_ &v) |
Vector2_ & | operator-= (const Vector2_ &v) |
Vector2_ & | operator*= (number_t s) |
Vector2_ & | operator/= (number_t s) |
Vector2_ | operator+ (const Vector2_ &v) const |
Vector2_ | operator- (const Vector2_ &v) const |
Vector2_ | operator- () const |
Vector2_ | operator* (number_t s) const |
Vector2_ | operator/ (number_t s) const |
number_t | dot (const Vector2_ &v) const |
number_t | len2 () const |
number_t | len () const |
Vector2_ | unit () const |
number_t | cross (const Vector2_ &v) const |
number_t | operator* (const Vector2_ &v) const |
Vector2_ | rotate90deg () const |
double | angle () const |
number_t * | data () |
const number_t * | data () const |
int | shape () const |
Static Public Member Functions | |
static Vector2_ | NaN () |
Public Attributes | |
union { | |
number_t x | |
number_t w | |
}; | |
union { | |
number_t y | |
number_t h | |
}; | |
Static Public Attributes | |
static const size_t | size = 2 |
Friends | |
Vector2_ | operator* (number_t s, const Vector2_ &v) |
typedef T allofw::Vector2_< T >::number_t |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
union { ... } |
union { ... } |
number_t allofw::Vector2_< T >::h |
|
static |
number_t allofw::Vector2_< T >::w |
number_t allofw::Vector2_< T >::x |
number_t allofw::Vector2_< T >::y |