Public Member Functions

  • RectT ()
  • RectT (T aX1, T aY1, T aX2, T aY2)
  • RectT (const Vec2T &v1, const Vec2T &v2)
  • RectT (const Area &area)
  • void
    set (T aX1, T aY1, T aX2, T aY2)
  • T
    getWidth () const
  • T
    getHeight () const
  • T
    getAspectRatio () const
  • T
    calcArea () const
  • void
    canonicalize ()
  • canonicalized () const
  • void
    clipBy (const RectT &clip)
  • getClipBy (const RectT &clip) const
  • getInteriorArea () const
  • void
    inflate (const Vec2T &amount)
  • inflated (const Vec2T &amount) const
  • void
    scaleCentered (const Vec2T &scale)
  • scaledCentered (const Vec2T &scale) const
  • void
    scaleCentered (T scale)
  • scaledCentered (T scale) const
  • void
    scale (T scale)
  • void
    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 CI_API std::ostream &
    operator<< (std::ostream &o, const RectT &rect)