#include <geom/vec3.h>
Public Member Functions | |
vec3 (V x_, V y_, V z_) | |
vec3 (const V *arr) | |
template<class U> | |
vec3 (const vec3< U > &other) | |
V & | x () |
const V & | x () const |
V & | y () |
const V & | y () const |
V & | z () |
const V & | z () const |
void | get (V &x_, V &y_, V &z_) const |
void | set (V x_, V y_, V z_) |
V * | data () |
const V * | data () const |
vec2< V > | as_vec2 () const |
double | length () const |
template<class U> | |
void | scale_by (const U &factor) |
template<class U> | |
vec3 & | operator*= (const U &factor) |
template<class U> | |
vec3 & | operator/= (const U &factor) |
vec3 | operator* (const V &factor) const |
vec3 | operator/ (const V &factor) const |
vec3 | operator+ (const vec2< V > &rhs) const |
vec3 | operator- (const vec2< V > &rhs) const |
vec3 | operator+ (const vec3< V > &rhs) const |
vec3 | operator- (const vec3< V > &rhs) const |
vec3 | operator* (const vec3< V > &rhs) const |
vec3 | operator/ (const vec3< V > &rhs) const |
void | debug_dump () const throw () |
Static Public Member Functions | |
static vec3 | zeros () |
static vec3 | ones () |
static vec3< V > | unit_x () |
static vec3< V > | unit_y () |
static vec3< V > | unit_z () |
Definition at line 48 of file vec3.h.