Point_2D

template<typename F>
class HPS::Point_2D

Public Functions

inline bool Equals(Point_2D const &p, int in_tolerance = 32) const
inline bool operator!=(Point_2D const &p) const
inline Point_2D const operator*(F s) const
Point_2D operator*(Vector_2D<F> const &v) const
inline Point_2D &operator*=(F s)
Point_2D &operator*=(Vector_2D<F> const &v)
Point_2D operator+(Vector_2D<F> const &v) const
Point_2D &operator+=(Vector_2D<F> const &v)
inline Point_2D const operator-() const
Vector_2D<F> operator-(Point_2D const &p) const
Point_2D operator-(Vector_2D<F> const &v) const
Point_2D &operator-=(Vector_2D<F> const &v)
inline Point_2D const operator/(F s) const
Point_2D operator/(Vector_2D<F> const &v) const
inline Point_2D &operator/=(F s)
Point_2D &operator/=(Vector_2D<F> const &v)
inline bool operator==(Point_2D const &p) const
inline F &operator[](size_t i)
inline F const &operator[](size_t i) const
inline Point_2D()
inline Point_2D(F v1, F v2)
template<typename D>
inline explicit Point_2D(Point_2D<D> const &that)
inline explicit Point_2D(Point_3D<F> const &that)
explicit Point_2D(Vector_2D<F> const &v)

Public Members

F x
F y

Public Static Functions

static inline HPS_INLINE Point_2D Origin ()
static inline HPS_INLINE Point_2D Zero ()