KiCad PCB EDA Suite
RectF Class Reference

#include <SutherlandHodgmanClipPoly.h>

Public Member Functions

 RectF ()
 
 RectF (const RectF &r)
 
 RectF (REAL x, REAL y, REAL w, REAL h)
 
REAL GetLeft () const
 
REAL GetTop () const
 
REAL GetRight () const
 
REAL GetBottom () const
 

Public Attributes

REAL X
 
REAL Y
 
REAL Width
 
REAL Height
 

Detailed Description

Definition at line 57 of file SutherlandHodgmanClipPoly.h.

Constructor & Destructor Documentation

RectF::RectF ( )
inline

Definition at line 65 of file SutherlandHodgmanClipPoly.h.

65 { X = 0, Y = 0, Height = 0, Width = 0; }
RectF::RectF ( const RectF r)
inline

Definition at line 66 of file SutherlandHodgmanClipPoly.h.

References Height, Width, X, and Y.

67  {
68  X = r.X; Y = r.Y; Height = r.Height, Width = r.Width;
69  }
RectF::RectF ( REAL  x,
REAL  y,
REAL  w,
REAL  h 
)
inline

Definition at line 72 of file SutherlandHodgmanClipPoly.h.

72  : X( x ), Y( y ),Width( w ), Height( h )
73  { }

Member Function Documentation

REAL RectF::GetBottom ( ) const
inline

Definition at line 77 of file SutherlandHodgmanClipPoly.h.

References Height.

77 { return Y + Height; }
REAL RectF::GetLeft ( ) const
inline

Definition at line 74 of file SutherlandHodgmanClipPoly.h.

References X.

74 { return X; }
REAL RectF::GetRight ( ) const
inline

Definition at line 76 of file SutherlandHodgmanClipPoly.h.

References Width.

76 { return X + Width; }
REAL RectF::GetTop ( ) const
inline

Definition at line 75 of file SutherlandHodgmanClipPoly.h.

References Y.

75 { return Y; }

Member Data Documentation

REAL RectF::Height

Definition at line 63 of file SutherlandHodgmanClipPoly.h.

Referenced by GetBottom(), and RectF().

REAL RectF::Width

Definition at line 62 of file SutherlandHodgmanClipPoly.h.

Referenced by GetRight(), and RectF().

REAL RectF::X

Definition at line 60 of file SutherlandHodgmanClipPoly.h.

Referenced by GetLeft(), and RectF().

REAL RectF::Y

Definition at line 61 of file SutherlandHodgmanClipPoly.h.

Referenced by GetTop(), and RectF().


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