Board  0.9.2
Public Member Functions | Public Attributes | List of all members
LibBoard::Rect Struct Reference

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

#include <Rect.h>

Public Member Functions

 Rect (double left=0.0f, double top=0.0f, double width=0.0f, double height=0.0f)
 
Point topLeft () const
 
Point topRight () const
 
Point bottomLeft () const
 
Point bottomRight () const
 
Point center () const
 
double bottom () const
 
double right () const
 

Public Attributes

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  left = 0.0f,
double  top = 0.0f,
double  width = 0.0f,
double  height = 0.0f 
)
inline

Rect constructor.

Parameters
left
top
width
height
Returns

Member Data Documentation

double LibBoard::Rect::height
double LibBoard::Rect::left
double LibBoard::Rect::top
double LibBoard::Rect::width

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