Template Struct vec3d

Struct Documentation

template<typename T>
struct vec3d

Public Functions

inline explicit vec3d()
inline vec3d(T x_, T y_, T z_)
template<typename S>
inline vec3d(const vec3d<S> &s)
template<typename S>
inline vec3d(const S *s)
inline vec3d<T> operator+(const vec3d<T> &p) const
inline vec3d<T> operator-(const vec3d<T> &p) const
inline vec3d<T> operator-() const
template<typename S>
inline vec3d<T> &operator+=(const vec3d<S> &p)
inline vec3d<T> &operator+=(const vec3d<T> &p)
template<typename S>
inline vec3d<T> &operator-=(const vec3d<S> &p)
inline vec3d<T> &operator-=(const vec3d<T> &p)
template<typename Scalar>
inline vec3d<T> &operator/=(const Scalar &s)
template<typename Scalar>
inline vec3d<T> &operator*=(const Scalar &s)
inline bool operator==(const vec3d &o) const
template<typename S>
inline bool operator==(const vec3d<S> &o) const
inline bool operator!=(const vec3d &o) const
template<typename S>
inline bool operator!=(const vec3d<S> &o) const

Public Members

T x
T y
T z

Friends

template<typename Scalar>
inline friend vec3d<T> operator*(const vec3d<T> &p, const Scalar &s)
template<typename Scalar>
inline friend vec3d<T> operator*(const Scalar &s, const vec3d<T> &p)
template<typename Scalar>
inline friend vec3d<T> operator/(const vec3d<T> &p, const Scalar &s)
inline friend std::ostream &operator<<(std::ostream &os, const vec3d<T> &p)
inline friend std::istream &operator>>(std::istream &is, vec3d<T> &p)