Public Member Functions | Public Attributes | Friends
CPoint2d Class Reference

#include <point.h>

List of all members.

Public Member Functions

 CPoint2d (void)
 CPoint2d (float x, float y)
 CPoint2d (const CPoint2d &tmpP)
float Dist (const CPoint2d &p)
CPoint2doperator*= (float s)
CPoint2doperator+= (const CPoint2d &p)
CPoint2doperator-= (const CPoint2d &p)
CPoint2doperator/= (float s)
 ~CPoint2d (void)

Public Attributes

float pointangle
float x
float y

Friends

bool operator!= (const CPoint2d &p1, const CPoint2d &p2)
CPoint2d operator* (const CPoint2d &p, float s)
CPoint2d operator+ (const CPoint2d &p1, const CPoint2d &p2)
CPoint2d operator- (const CPoint2d &p1, const CPoint2d &p2)
CPoint2d operator/ (const CPoint2d &p, float num)
bool operator== (const CPoint2d &p1, const CPoint2d &p2)

Detailed Description

Definition at line 4 of file point.h.


Constructor & Destructor Documentation

CPoint2d::CPoint2d ( void  )

Definition at line 6 of file point.cpp.

CPoint2d::CPoint2d ( float  x,
float  y 
)

Definition at line 11 of file point.cpp.

CPoint2d::~CPoint2d ( void  )

Definition at line 18 of file point.cpp.

CPoint2d::CPoint2d ( const CPoint2d tmpP)

Definition at line 23 of file point.cpp.


Member Function Documentation

float CPoint2d::Dist ( const CPoint2d p)

Definition at line 121 of file point.cpp.

CPoint2d & CPoint2d::operator*= ( float  s)

Definition at line 44 of file point.cpp.

CPoint2d & CPoint2d::operator+= ( const CPoint2d p)

Definition at line 32 of file point.cpp.

CPoint2d & CPoint2d::operator-= ( const CPoint2d p)

Definition at line 38 of file point.cpp.

CPoint2d & CPoint2d::operator/= ( float  s)

Definition at line 50 of file point.cpp.


Friends And Related Function Documentation

bool operator!= ( const CPoint2d p1,
const CPoint2d p2 
) [friend]

Definition at line 105 of file point.cpp.

CPoint2d operator* ( const CPoint2d p,
float  s 
) [friend]

Definition at line 72 of file point.cpp.

CPoint2d operator+ ( const CPoint2d p1,
const CPoint2d p2 
) [friend]

Definition at line 58 of file point.cpp.

CPoint2d operator- ( const CPoint2d p1,
const CPoint2d p2 
) [friend]

Definition at line 65 of file point.cpp.

CPoint2d operator/ ( const CPoint2d p,
float  num 
) [friend]

Definition at line 83 of file point.cpp.

bool operator== ( const CPoint2d p1,
const CPoint2d p2 
) [friend]

Definition at line 98 of file point.cpp.


Member Data Documentation

Definition at line 9 of file point.h.

float CPoint2d::x

Definition at line 7 of file point.h.

float CPoint2d::y

Definition at line 8 of file point.h.


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


hexagon_map
Author(s):
autogenerated on Thu Jun 6 2019 18:38:28