Public Member Functions

  • Area ()
  • Area (const ivec2 &UL, const ivec2 &LR)
  • Area (int32_t aX1, int32_t aY1, int32_t aX2, int32_t aY2)
  • Area (const RectT< float > &r)
  • void
    set (int32_t aX1, int32_t aY1, int32_t aX2, int32_t aY2)
  • int32_t
    getWidth () const
  • int32_t
    getHeight () const
  • ivec2
    getSize () const
  • vec2
    getCenter () const
  • int32_t
    calcArea () const
  • void
    clipBy (const Area &clip)
  • getClipBy (const Area &clip) const
  • int32_t
    getX1 () const
  • void
    setX1 (int32_t aX1)
  • int32_t
    getY1 () const
  • void
    setY1 (int32_t aY1)
  • int32_t
    getX2 () const
  • void
    setX2 (int32_t aX2)
  • int32_t
    getY2 () const
  • void
    setY2 (int32_t aY2)
  • ivec2
    getUL () const
  • ivec2
    getLR () const
  • bool
    contains (const ivec2 &offset) const
  • bool
    contains (const glm::tvec2< T, glm::defaultp > &offset) const
  • bool
    intersects (const Area &area) const
  • float
    distance (const vec2 &pt) const
  • float
    distance (const dvec2 &pt) const
  • float
    distance (const ivec2 &pt) const
  • float
    distanceSquared (const vec2 &pt) const
  • float
    distanceSquared (const dvec2 &pt) const
  • float
    distanceSquared (const ivec2 &pt) const
  • vec2
    closestPoint (const vec2 &pt) const
  • ivec2
    closestPoint (const ivec2 &pt) const
  • dvec2
    closestPoint (const dvec2 &pt) const
  • bool
    operator== (const Area &rhs) const
  • bool
    operator!= (const Area &rhs) const
  • bool
    operator< (const Area &aArea) const
  • const Area
    operator+ (const ivec2 &o) const
  • const Area
    operator- (const ivec2 &o) const
  • const Area
    operator+ (const Area &rhs) const
  • const Area
    operator- (const Area &rhs) const
  • operator+= (const ivec2 &o)
  • operator-= (const ivec2 &o)

Static Public Member Functions

  • proportionalFit (const Area &srcArea, const Area &dstArea, bool center, bool expand=false)

Friends

  • friend CI_API std::ostream &
    operator<< (std::ostream &o, const Area &area)