VVISF & VVGL
VVGL::Rect Struct Reference

Basic struct for a rectangle using VVGL::Point and VVGL::Size. More...

#include <VVGL_Geom.hpp>

Public Member Functions

double minX () const
 Returns the min X coordinate of the rect.
 
double maxX () const
 Returns the max X coordinate of the rect.
 
double minY () const
 Returns the min Y coordinate of the rect.
 
double maxY () const
 Returns the max Y coordinate of the rect.
 
double midX () const
 Returns the middle X coordinate of the rect.
 
double midY () const
 Returns the middle Y coordinate of the rect.
 
Point topLeft () const
 Returns a Point describing the top-left corner of the rect.
 
Point topRight () const
 Returns a Point describing the top-right corner of the rect.
 
Point botLeft () const
 Returns a Point describing the bottom-left corner of the rect.
 
Point botRight () const
 Returns a Point describing the bottom-right corner of the rect.
 
Point center () const
 Returns a Point describing the center of the rect.
 
bool isZero () const
 Sets all the values of the rect to 0.
 

Detailed Description

Basic struct for a rectangle using VVGL::Point and VVGL::Size.


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