ezEngine  Milestone 9
ezRectTemplate< Type > Class Template Reference

A simple rectangle class templated on the type for x, y and width, height. More...

#include <Rect.h>

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
 ezRectTemplate ()
 Default constructor does not initialize the data.
 
 ezRectTemplate (Type X, Type Y, Type Width, Type Height)
 Constructor to set all values.
 
 ezRectTemplate (Type Width, Type Height)
 Initializes x and y with zero, width and height with the given values.
 
Type Left () const
 The smaller value along x.
 
Type Right () const
 The larger value along x.
 
Type Top () const
 The smaller value along y.
 
Type Bottom () const
 The larger value along y.
 
bool operator== (const ezRectTemplate< Type > &rhs) const
 
bool operator!= (const ezRectTemplate< Type > &rhs) const
 
bool HasNonZeroArea () const
 Returns true if the area of the rectangle is non zero.
 

Public Attributes

Type x
 
Type y
 
Type width
 
Type height
 

Detailed Description

template<typename Type>
class ezRectTemplate< Type >

A simple rectangle class templated on the type for x, y and width, height.


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