ezEngine  Milestone 7
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.
 
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: