#include <hps.h>

Public Member Functions | |
| Point_2D () | |
| Point_2D (F v1, F v2) | |
| template<typename D > | |
| Point_2D (Point_2D< D > const &that) | |
| Point_2D (Point_3D< F > const &that) | |
| Point_2D (Vector_2D< F > const &v) | |
| Point_2D const | operator- () const |
| bool | operator== (Point_2D const &p) const |
| bool | operator!= (Point_2D const &p) const |
| bool | Equals (Point_2D const &p, int in_tolerance=32) const |
| Point_2D & | operator*= (F s) |
| Point_2D & | operator/= (F s) |
| Point_2D const | operator* (F s) const |
| Point_2D const | operator/ (F s) const |
| F & | operator[] (size_t i) |
| F const & | operator[] (size_t i) const |
| Point_2D & | operator+= (Vector_2D< F > const &v) |
| Point_2D & | operator-= (Vector_2D< F > const &v) |
| Point_2D & | operator*= (Vector_2D< F > const &v) |
| Point_2D & | operator/= (Vector_2D< F > const &v) |
| Point_2D const | operator* (Vector_2D< F > const &v) const |
| Point_2D const | operator/ (Vector_2D< F > const &v) const |
| Vector_2D< F > const | operator- (Point_2D const &p) const |
| Point_2D const | operator+ (Vector_2D< F > const &v) const |
| Point_2D const | operator- (Vector_2D< F > const &v) const |
Static Public Member Functions | |
| static HPS_INLINE Point_2D | Origin () |
| static HPS_INLINE Point_2D | Zero () |
Public Attributes | |
| F | x |
| F | y |
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
explicit |
|
inline |
|
inline |
|
inline |
| HPS_INLINE Point_2D< F > const HPS::Point_2D< F >::operator* | ( | Vector_2D< F > const & | v | ) | const |
|
inline |
| HPS_INLINE Point_2D< F > & HPS::Point_2D< F >::operator*= | ( | Vector_2D< F > const & | v | ) |
| HPS_INLINE Point_2D< F > const HPS::Point_2D< F >::operator+ | ( | Vector_2D< F > const & | v | ) | const |
| HPS_INLINE Point_2D< F > & HPS::Point_2D< F >::operator+= | ( | Vector_2D< F > const & | v | ) |
|
inline |
| HPS_INLINE Vector_2D< F > const HPS::Point_2D< F >::operator- | ( | Point_2D< F > const & | p | ) | const |
| HPS_INLINE Point_2D< F > const HPS::Point_2D< F >::operator- | ( | Vector_2D< F > const & | v | ) | const |
| HPS_INLINE Point_2D< F > & HPS::Point_2D< F >::operator-= | ( | Vector_2D< F > const & | v | ) |
|
inline |

| HPS_INLINE Point_2D< F > const HPS::Point_2D< F >::operator/ | ( | Vector_2D< F > const & | v | ) | const |
|
inline |
| HPS_INLINE Point_2D< F > & HPS::Point_2D< F >::operator/= | ( | Vector_2D< F > const & | v | ) |
|
inline |
|
inline |
|
inline |

|
inlinestatic |
|
inlinestatic |
| F HPS::Point_2D< F >::x |
| F HPS::Point_2D< F >::y |