Conscience Core
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
conscience_core::axiomes::CscPoint2d Class Reference

#include <Csc2dTypes.h>

Inheritance diagram for conscience_core::axiomes::CscPoint2d:
conscience_core::axiomes::CscPoint2dOriented

Public Member Functions

 CscPoint2d (const CscPoint2d *fromPoint)
 
 CscPoint2d (double inX=0, double inY=0)
 
virtual ~CscPoint2d ()=default
 
CscPoint2doperator= (const CscPoint2d &other)
 
double getX () const
 
double getY () const
 
virtual operator string () const
 
virtual string toString () const
 
double distanceWith (const CscPoint2d *point)
 
double distanceWith (const CscPoint2d &point)
 
CscPoint2d plus (const CscPoint2d &other) const
 
CscPoint2d minus (const CscPoint2d &other) const
 
CscPoint2d operator+ (const CscPoint2d &other) const
 
CscPoint2d operator- (const CscPoint2d &other) const
 
bool isInside (const CscRect2d &rectangle) const
 
virtual map< string, double > toMap () const
 
virtual CscPoint2dclone () const
 

Static Public Member Functions

static CscPoint2dzero ()
 

Public Attributes

double x
 
double y
 

Constructor & Destructor Documentation

◆ CscPoint2d() [1/2]

conscience_core::axiomes::CscPoint2d::CscPoint2d ( const CscPoint2d fromPoint)

◆ CscPoint2d() [2/2]

conscience_core::axiomes::CscPoint2d::CscPoint2d ( double  inX = 0,
double  inY = 0 
)

◆ ~CscPoint2d()

virtual conscience_core::axiomes::CscPoint2d::~CscPoint2d ( )
virtualdefault

Member Function Documentation

◆ clone()

CscPoint2d * conscience_core::axiomes::CscPoint2d::clone ( ) const
virtual

◆ distanceWith() [1/2]

double conscience_core::axiomes::CscPoint2d::distanceWith ( const CscPoint2d point)

◆ distanceWith() [2/2]

double conscience_core::axiomes::CscPoint2d::distanceWith ( const CscPoint2d point)

◆ getX()

double conscience_core::axiomes::CscPoint2d::getX ( ) const

◆ getY()

double conscience_core::axiomes::CscPoint2d::getY ( ) const

◆ isInside()

bool conscience_core::axiomes::CscPoint2d::isInside ( const CscRect2d rectangle) const

if point is on a rectangle's border -> returns true as well

◆ minus()

CscPoint2d conscience_core::axiomes::CscPoint2d::minus ( const CscPoint2d other) const

◆ operator string()

virtual conscience_core::axiomes::CscPoint2d::operator string ( ) const
inlinevirtual

◆ operator+()

CscPoint2d conscience_core::axiomes::CscPoint2d::operator+ ( const CscPoint2d other) const

◆ operator-()

CscPoint2d conscience_core::axiomes::CscPoint2d::operator- ( const CscPoint2d other) const

◆ operator=()

CscPoint2d& conscience_core::axiomes::CscPoint2d::operator= ( const CscPoint2d other)
inline

◆ plus()

CscPoint2d conscience_core::axiomes::CscPoint2d::plus ( const CscPoint2d other) const

◆ toMap()

map< string, double > conscience_core::axiomes::CscPoint2d::toMap ( ) const
virtual

{x:number, y: number}

Reimplemented in conscience_core::axiomes::CscPoint2dOriented.

◆ toString()

string conscience_core::axiomes::CscPoint2d::toString ( ) const
virtual

◆ zero()

CscPoint2d * conscience_core::axiomes::CscPoint2d::zero ( )
static

return a NEW point initialized with 0,0

Member Data Documentation

◆ x

double conscience_core::axiomes::CscPoint2d::x

◆ y

double conscience_core::axiomes::CscPoint2d::y

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