Public Member Functions

  • RectT ()
  • RectT (T aX1, T aY1, T aX2, T aY2)
  • RectT (const Vec2T &v1, const Vec2T &v2)
  • RectT (const Area &area)
  • set (T aX1, T aY1, T aX2, T aY2)
  • T
    getWidth () const
  • T
    getHeight () const
  • T
    getAspectRatio () const
  • T
    calcArea () const
  • canonicalize ()
  • canonicalized () const
  • clipBy (const RectT &clip)
  • getClipBy (const RectT &clip) const
  • getInteriorArea () const
  • inflate (const Vec2T &amount)
  • inflated (const Vec2T &amount) const
  • scaleCentered (const Vec2T &scale)
  • scaledCentered (const Vec2T &scale) const
  • scaleCentered (T scale)
  • scaledCentered (T scale) const
  • scale (T scale)
  • scale (const Vec2T &scale)
  • scaled (T scale) const
  • scaled (const Vec2T &scale) const
  • bool
    contains (const Vec2T &pt) const
  • T
    getX1 () const
  • T
    getY1 () const
  • T
    getX2 () const
  • T
    getY2 () const
  • getUpperLeft () const
  • getUpperRight () const
  • getLowerRight () const
  • getLowerLeft () const
  • getCenter () const
  • getSize () const
  • const RectT< T >
    operator+ (const Vec2T &o) const
  • const RectT< T >
    operator- (const Vec2T &o) const
  • const RectT< T >
    operator* (T s) const
  • const RectT< T >
    operator/ (T s) const
  • const RectT< T >
    operator+ (const RectT< T > &rhs) const
  • const RectT< T >
    operator- (const RectT< T > &rhs) const
  • RectT< T > &
    operator+= (const Vec2T &o)
  • RectT< T > &
    operator-= (const Vec2T &o)
  • RectT< T > &
    operator*= (T s)
  • RectT< T > &
    operator/= (T s)

Static Public Member Functions


Friends

  • friend std::ostream &
    operator<< (std::ostream &o, const RectT &rect)