KiCad PCB EDA Suite
PointF Class Reference

#include <SutherlandHodgmanClipPoly.h>

Public Member Functions

 PointF ()
 
 PointF (const PointF &p)
 
 PointF (REAL x, REAL y)
 
PointF operator+ (const PointF &p) const
 
PointF operator- (const PointF &p) const
 
bool Equals (const PointF &p)
 

Public Attributes

REAL X
 
REAL Y
 

Detailed Description

Definition at line 40 of file SutherlandHodgmanClipPoly.h.

Constructor & Destructor Documentation

PointF::PointF ( )
inline

Definition at line 46 of file SutherlandHodgmanClipPoly.h.

Referenced by operator+(), and operator-().

46  : X( 0 )
47  , Y( 0 ) { }
PointF::PointF ( const PointF p)
inline

Definition at line 48 of file SutherlandHodgmanClipPoly.h.

48  : X( p.X )
49  , Y( p.Y ) { }
PointF::PointF ( REAL  x,
REAL  y 
)
inline

Definition at line 50 of file SutherlandHodgmanClipPoly.h.

50  : X( x )
51  , Y( y ) { }

Member Function Documentation

bool PointF::Equals ( const PointF p)
inline

Definition at line 54 of file SutherlandHodgmanClipPoly.h.

References X, and Y.

54 { return (X == p.X) && (Y == p.Y); }
PointF PointF::operator+ ( const PointF p) const
inline

Definition at line 52 of file SutherlandHodgmanClipPoly.h.

References PointF(), X, and Y.

52 { return PointF( X + p.X, Y + p.Y ); }
PointF PointF::operator- ( const PointF p) const
inline

Definition at line 53 of file SutherlandHodgmanClipPoly.h.

References PointF(), X, and Y.

53 { return PointF( X - p.X, Y - p.Y ); }

Member Data Documentation


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