DeSiGNAR  0.5a
Data Structures General Library
Public Types | Public Member Functions | Protected Attributes | List of all members
Designar::GenPoint2D< NumT > Class Template Reference

#include <math.H>

Collaboration diagram for Designar::GenPoint2D< NumT >:
Collaboration graph
[legend]

Public Types

using ComponentType = NumT
 
using NumberType = NumT
 
using ValueType = NumT
 

Public Member Functions

 GenPoint2D ()
 
 GenPoint2D (const NumT &_x, const NumT &_y)
 
 GenPoint2D (const NumT &_x, NumT &&_y)
 
 GenPoint2D (NumT &&_x, const NumT &_y)
 
 GenPoint2D (NumT &&_x, NumT &&_y)
 
 GenPoint2D (const GenPoint2D &p)
 
 GenPoint2D (GenPoint2D &&p)
 
GenPoint2Doperator= (const GenPoint2D &p)
 
GenPoint2Doperator= (GenPoint2D &&p)
 
void swap (GenPoint2D &p)
 
const NumT & get_x () const
 
const NumT & get_y () const
 
void set_x (const NumT &_x)
 
void set_x (NumT &&_x)
 
void set_y (const NumT &_y)
 
void set_y (NumT &&_y)
 
void nullify ()
 
bool is_null () const
 
bool is_zero () const
 
NumT square_distance_with (const GenPoint2D &p) const
 
real_t distance_with (const GenPoint2D &p) const
 
NumT square_distance_to_origin () const
 
NumT distance_to_origin () const
 
bool is_to_right_from (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_to_right_on_from (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_to_left_from (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_to_left_on_from (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_collinear_with (const GenPoint2D &p, const GenPoint2D &q) const
 
bool is_between (const GenPoint2D &p, const GenPoint2D &q) const
 
 operator bool () const
 
bool operator== (const GenPoint2D &p) const
 
bool operator!= (const GenPoint2D &p) const
 
std::string to_string () const
 

Protected Attributes

NumT x
 
NumT y
 

Member Typedef Documentation

template<typename NumT>
using Designar::GenPoint2D< NumT >::ComponentType = NumT
template<typename NumT>
using Designar::GenPoint2D< NumT >::NumberType = NumT
template<typename NumT>
using Designar::GenPoint2D< NumT >::ValueType = NumT

Constructor & Destructor Documentation

template<typename NumT>
Designar::GenPoint2D< NumT >::GenPoint2D ( )
inline
template<typename NumT>
Designar::GenPoint2D< NumT >::GenPoint2D ( const NumT &  _x,
const NumT &  _y 
)
inline
template<typename NumT>
Designar::GenPoint2D< NumT >::GenPoint2D ( const NumT &  _x,
NumT &&  _y 
)
inline
template<typename NumT>
Designar::GenPoint2D< NumT >::GenPoint2D ( NumT &&  _x,
const NumT &  _y 
)
inline
template<typename NumT>
Designar::GenPoint2D< NumT >::GenPoint2D ( NumT &&  _x,
NumT &&  _y 
)
inline
template<typename NumT>
Designar::GenPoint2D< NumT >::GenPoint2D ( const GenPoint2D< NumT > &  p)
inline
template<typename NumT>
Designar::GenPoint2D< NumT >::GenPoint2D ( GenPoint2D< NumT > &&  p)
inline

Member Function Documentation

template<typename NumT>
NumT Designar::GenPoint2D< NumT >::distance_to_origin ( ) const
inline
template<typename NumT>
real_t Designar::GenPoint2D< NumT >::distance_with ( const GenPoint2D< NumT > &  p) const
inline
template<typename NumT>
const NumT& Designar::GenPoint2D< NumT >::get_x ( ) const
inline
template<typename NumT>
const NumT& Designar::GenPoint2D< NumT >::get_y ( ) const
inline
template<typename NumT>
bool Designar::GenPoint2D< NumT >::is_between ( const GenPoint2D< NumT > &  p,
const GenPoint2D< NumT > &  q 
) const
inline
template<typename NumT>
bool Designar::GenPoint2D< NumT >::is_collinear_with ( const GenPoint2D< NumT > &  p,
const GenPoint2D< NumT > &  q 
) const
inline
template<typename NumT>
bool Designar::GenPoint2D< NumT >::is_null ( ) const
inline
template<typename NumT>
bool Designar::GenPoint2D< NumT >::is_to_left_from ( const GenPoint2D< NumT > &  p,
const GenPoint2D< NumT > &  q 
) const
inline
template<typename NumT>
bool Designar::GenPoint2D< NumT >::is_to_left_on_from ( const GenPoint2D< NumT > &  p,
const GenPoint2D< NumT > &  q 
) const
inline
template<typename NumT>
bool Designar::GenPoint2D< NumT >::is_to_right_from ( const GenPoint2D< NumT > &  p,
const GenPoint2D< NumT > &  q 
) const
inline
template<typename NumT>
bool Designar::GenPoint2D< NumT >::is_to_right_on_from ( const GenPoint2D< NumT > &  p,
const GenPoint2D< NumT > &  q 
) const
inline
template<typename NumT>
bool Designar::GenPoint2D< NumT >::is_zero ( ) const
inline
template<typename NumT>
void Designar::GenPoint2D< NumT >::nullify ( )
inline
template<typename NumT>
Designar::GenPoint2D< NumT >::operator bool ( ) const
inlineexplicit
template<typename NumT>
bool Designar::GenPoint2D< NumT >::operator!= ( const GenPoint2D< NumT > &  p) const
inline
template<typename NumT>
GenPoint2D& Designar::GenPoint2D< NumT >::operator= ( const GenPoint2D< NumT > &  p)
inline
template<typename NumT>
GenPoint2D& Designar::GenPoint2D< NumT >::operator= ( GenPoint2D< NumT > &&  p)
inline
template<typename NumT>
bool Designar::GenPoint2D< NumT >::operator== ( const GenPoint2D< NumT > &  p) const
inline
template<typename NumT>
void Designar::GenPoint2D< NumT >::set_x ( const NumT &  _x)
inline
template<typename NumT>
void Designar::GenPoint2D< NumT >::set_x ( NumT &&  _x)
inline
template<typename NumT>
void Designar::GenPoint2D< NumT >::set_y ( const NumT &  _y)
inline
template<typename NumT>
void Designar::GenPoint2D< NumT >::set_y ( NumT &&  _y)
inline
template<typename NumT>
NumT Designar::GenPoint2D< NumT >::square_distance_to_origin ( ) const
inline
template<typename NumT>
NumT Designar::GenPoint2D< NumT >::square_distance_with ( const GenPoint2D< NumT > &  p) const
inline
template<typename NumT>
void Designar::GenPoint2D< NumT >::swap ( GenPoint2D< NumT > &  p)
inline
template<typename NumT>
std::string Designar::GenPoint2D< NumT >::to_string ( ) const
inline

Member Data Documentation

template<typename NumT>
NumT Designar::GenPoint2D< NumT >::x
protected
template<typename NumT>
NumT Designar::GenPoint2D< NumT >::y
protected

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