Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::Point_2D< F > Class Template Reference

#include <hps.h>

Collaboration diagram for HPS::Point_2D< F >:

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_2Doperator*= (F s)
 
Point_2Doperator/= (F s)
 
Point_2D const operator* (F s) const
 
Point_2D const operator/ (F s) const
 
Foperator[] (size_t i)
 
F const & operator[] (size_t i) const
 
Point_2Doperator+= (Vector_2D< F > const &v)
 
Point_2Doperator-= (Vector_2D< F > const &v)
 
Point_2Doperator*= (Vector_2D< F > const &v)
 
Point_2Doperator/= (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
 

Constructor & Destructor Documentation

◆ Point_2D() [1/5]

template<typename F>
HPS::Point_2D< F >::Point_2D ( )
inline

◆ Point_2D() [2/5]

template<typename F>
HPS::Point_2D< F >::Point_2D ( F  v1,
F  v2 
)
inline

◆ Point_2D() [3/5]

template<typename F>
template<typename D >
HPS::Point_2D< F >::Point_2D ( Point_2D< D > const &  that)
inlineexplicit

◆ Point_2D() [4/5]

template<typename F>
HPS::Point_2D< F >::Point_2D ( Point_3D< F > const &  that)
inlineexplicit

◆ Point_2D() [5/5]

template<typename F>
HPS::Point_2D< F >::Point_2D ( Vector_2D< F > const &  v)
explicit

Member Function Documentation

◆ Equals()

template<typename F>
bool HPS::Point_2D< F >::Equals ( Point_2D< F > const &  p,
int  in_tolerance = 32 
) const
inline

◆ operator!=()

template<typename F>
bool HPS::Point_2D< F >::operator!= ( Point_2D< F > const &  p) const
inline

◆ operator*() [1/2]

template<typename F>
Point_2D const HPS::Point_2D< F >::operator* ( F  s) const
inline

◆ operator*() [2/2]

template<typename F >
HPS_INLINE Point_2D< F > const HPS::Point_2D< F >::operator* ( Vector_2D< F > const &  v) const

◆ operator*=() [1/2]

template<typename F>
Point_2D& HPS::Point_2D< F >::operator*= ( F  s)
inline

◆ operator*=() [2/2]

template<typename F >
HPS_INLINE Point_2D< F > & HPS::Point_2D< F >::operator*= ( Vector_2D< F > const &  v)

◆ operator+()

template<typename F >
HPS_INLINE Point_2D< F > const HPS::Point_2D< F >::operator+ ( Vector_2D< F > const &  v) const

◆ operator+=()

template<typename F >
HPS_INLINE Point_2D< F > & HPS::Point_2D< F >::operator+= ( Vector_2D< F > const &  v)

◆ operator-() [1/3]

template<typename F>
Point_2D const HPS::Point_2D< F >::operator- ( ) const
inline

◆ operator-() [2/3]

template<typename F >
HPS_INLINE Vector_2D< F > const HPS::Point_2D< F >::operator- ( Point_2D< F > const &  p) const

◆ operator-() [3/3]

template<typename F >
HPS_INLINE Point_2D< F > const HPS::Point_2D< F >::operator- ( Vector_2D< F > const &  v) const

◆ operator-=()

template<typename F >
HPS_INLINE Point_2D< F > & HPS::Point_2D< F >::operator-= ( Vector_2D< F > const &  v)

◆ operator/() [1/2]

template<typename F>
Point_2D const HPS::Point_2D< F >::operator/ ( F  s) const
inline
Here is the call graph for this function:

◆ operator/() [2/2]

template<typename F >
HPS_INLINE Point_2D< F > const HPS::Point_2D< F >::operator/ ( Vector_2D< F > const &  v) const

◆ operator/=() [1/2]

template<typename F>
Point_2D& HPS::Point_2D< F >::operator/= ( F  s)
inline

◆ operator/=() [2/2]

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

◆ operator==()

template<typename F>
bool HPS::Point_2D< F >::operator== ( Point_2D< F > const &  p) const
inline

◆ operator[]() [1/2]

template<typename F>
F& HPS::Point_2D< F >::operator[] ( size_t  i)
inline

◆ operator[]() [2/2]

template<typename F>
F const& HPS::Point_2D< F >::operator[] ( size_t  i) const
inline
Here is the call graph for this function:

◆ Origin()

template<typename F>
static HPS_INLINE Point_2D HPS::Point_2D< F >::Origin ( )
inlinestatic

◆ Zero()

template<typename F>
static HPS_INLINE Point_2D HPS::Point_2D< F >::Zero ( )
inlinestatic

Member Data Documentation

◆ x

template<typename F>
F HPS::Point_2D< F >::x

◆ y

template<typename F>
F HPS::Point_2D< F >::y

The documentation for this class was generated from the following file: