#include <math3d.h>
Public Member Functions | |
bool | operator!= (const vec3d &o) const |
template<typename S > | |
bool | operator!= (const vec3d< S > &o) const |
template<typename Scalar > | |
vec3d< T > & | operator*= (const Scalar &s) |
vec3d< T > | operator+ (const vec3d< T > &p) const |
template<typename S > | |
vec3d< T > & | operator+= (const vec3d< S > &p) |
vec3d< T > & | operator+= (const vec3d< T > &p) |
vec3d< T > | operator- (const vec3d< T > &p) const |
vec3d< T > | operator- () const |
template<typename S > | |
vec3d< T > & | operator-= (const vec3d< S > &p) |
vec3d< T > & | operator-= (const vec3d< T > &p) |
template<typename Scalar > | |
vec3d< T > & | operator/= (const Scalar &s) |
bool | operator== (const vec3d &o) const |
template<typename S > | |
bool | operator== (const vec3d< S > &o) const |
vec3d () | |
vec3d (T x_, T y_, T z_) | |
template<typename S > | |
vec3d (const vec3d< S > &s) | |
template<typename S > | |
vec3d (const S *s) | |
Public Attributes | |
T | x |
T | y |
T | z |
Friends | |
template<typename Scalar > | |
vec3d< T > | operator* (const vec3d< T > &p, const Scalar &s) |
template<typename Scalar > | |
vec3d< T > | operator* (const Scalar &s, const vec3d< T > &p) |
template<typename Scalar > | |
vec3d< T > | operator/ (const vec3d< T > &p, const Scalar &s) |
std::ostream & | operator<< (std::ostream &os, const vec3d< T > &p) |
std::istream & | operator>> (std::istream &is, vec3d< T > &p) |
math3d::vec3d< T >::vec3d | ( | ) | [inline, explicit] |
math3d::vec3d< T >::vec3d | ( | T | x_, |
T | y_, | ||
T | z_ | ||
) | [inline] |
math3d::vec3d< T >::vec3d | ( | const vec3d< S > & | s | ) | [inline] |
bool math3d::vec3d< T >::operator!= | ( | const vec3d< T > & | o | ) | const [inline] |
bool math3d::vec3d< T >::operator!= | ( | const vec3d< S > & | o | ) | const [inline] |
vec3d<T>& math3d::vec3d< T >::operator*= | ( | const Scalar & | s | ) | [inline] |
vec3d<T> math3d::vec3d< T >::operator+ | ( | const vec3d< T > & | p | ) | const [inline] |
vec3d<T>& math3d::vec3d< T >::operator+= | ( | const vec3d< S > & | p | ) | [inline] |
vec3d<T>& math3d::vec3d< T >::operator+= | ( | const vec3d< T > & | p | ) | [inline] |
vec3d<T> math3d::vec3d< T >::operator- | ( | const vec3d< T > & | p | ) | const [inline] |
vec3d<T> math3d::vec3d< T >::operator- | ( | ) | const [inline] |
vec3d<T>& math3d::vec3d< T >::operator-= | ( | const vec3d< S > & | p | ) | [inline] |
vec3d<T>& math3d::vec3d< T >::operator-= | ( | const vec3d< T > & | p | ) | [inline] |
vec3d<T>& math3d::vec3d< T >::operator/= | ( | const Scalar & | s | ) | [inline] |
bool math3d::vec3d< T >::operator== | ( | const vec3d< T > & | o | ) | const [inline] |
bool math3d::vec3d< T >::operator== | ( | const vec3d< S > & | o | ) | const [inline] |
std::ostream& operator<< | ( | std::ostream & | os, |
const vec3d< T > & | p | ||
) | [friend] |
std::istream& operator>> | ( | std::istream & | is, |
vec3d< T > & | p | ||
) | [friend] |
T math3d::vec3d< T >::x |
T math3d::vec3d< T >::y |
T math3d::vec3d< T >::z |