ScummVM API documentation
Twp::Rectf Struct Reference

Public Member Functions

 Rectf (float x, float y, float w, float h)
 
Rectf operator/ (const Math::Vector2d &v)
 
float left () const
 
float right () const
 
float top () const
 
float bottom () const
 
bool contains (const Math::Vector2d &pos) const
 

Static Public Member Functions

static Rectf fromPosAndSize (const Math::Vector2d &pos, const Math::Vector2d &size)
 
static Rectf fromMinMax (const Math::Vector2d &min, const Math::Vector2d &max)
 

Public Attributes

union {
   float   v [4]
 
   struct {
      float   x
 
      float   y
 
      float   w
 
      float   h
 
   }   r
 
}; 
 

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