LevelS C++ support library
3.83
|
#include <vec3.h>
Public Member Functions | |
vec3_t () | |
vec3_t (T xc, T yc, T zc) | |
void | Set (T xc, T yc, T zc) |
void | set_z_phi (T z_, T phi) |
void | Normalize () |
T | Length () const |
T | SquaredLength () const |
const vec3_t | operator- () const |
void | Flip () |
const vec3_t | operator+ (const vec3_t &vec) const |
vec3_t & | operator+= (const vec3_t &vec) |
const vec3_t | operator- (const vec3_t &vec) const |
vec3_t & | operator-= (const vec3_t &vec) |
const vec3_t | operator* (T fact) const |
const vec3_t | operator/ (T fact) const |
vec3_t & | operator*= (T fact) |
Public Attributes | |
T | x |
T | y |
T | z |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T > | |
T | dotprod (const vec3_t< T > &v1, const vec3_t< T > &v2) |
template<typename T > | |
vec3_t< T > | crossprod (const vec3_t< T > &a, const vec3_t< T > &b) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const vec3_t< T > &v) |
Class representing a 3D cartesian vector.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |