Public Member Functions | Data Fields

LibBoard::Rect Struct Reference

Struct representing a rectangle on the plane. More...

#include <Rect.h>

Public Member Functions

 Rect (double leftX=0.0f, double topY=0.0f, double rectWidth=0.0f, double rectHeight=0.0f)
Point topLeft ()
Point topRight ()
Point bottomLeft ()
Point bottomRight ()

Data Fields

double left
double top
double width
double height

Detailed Description

Struct representing a rectangle on the plane.

The Rectangle structure.


Constructor & Destructor Documentation

LibBoard::Rect::Rect ( double  leftX = 0.0f,
double  topY = 0.0f,
double  rectWidth = 0.0f,
double  rectHeight = 0.0f 
) [inline]

Rect constructor.

Parameters:
left 
top 
width 
height 
Returns:

Member Function Documentation

Point LibBoard::Rect::bottomLeft (  )  [inline]

References height, left, and top.

Point LibBoard::Rect::bottomRight (  )  [inline]

References height, left, top, and width.

Point LibBoard::Rect::topLeft (  )  [inline]

References left, and top.

Point LibBoard::Rect::topRight (  )  [inline]

References left, top, and width.


Field Documentation


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