Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXExtentf Class Reference

Extent. More...

#include <FXExtentf.h>

List of all members.

Public Member Functions

 FXExtentf ()
 FXExtentf (const FXExtentf &ext)
 FXExtentf (const FXVec2f &p)
 FXExtentf (const FXVec2f &lo, const FXVec2f &hi)
 FXExtentf (FXfloat x, FXfloat y)
 FXExtentf (FXfloat xl, FXfloat xh, FXfloat yl, FXfloat yh)
FXExtentfoperator= (const FXExtentf &ext)
FXExtentfset (const FXExtentf &ext)
FXExtentfset (const FXVec2f &p)
FXExtentfset (const FXVec2f &lo, const FXVec2f &hi)
FXExtentfset (FXfloat x, FXfloat y)
FXExtentfset (FXfloat xl, FXfloat xh, FXfloat yl, FXfloat yh)
FXVec2foperator[] (FXint i)
const FXVec2foperator[] (FXint i) const
FXbool operator== (const FXExtentf &ext) const
FXbool operator!= (const FXExtentf &ext) const
FXfloat width () const
FXfloat height () const
FXfloat longest () const
FXfloat shortest () const
FXfloat diameter () const
FXfloat radius () const
FXVec2f diagonal () const
FXVec2f center () const
FXbool empty () const
FXbool contains (FXfloat x, FXfloat y) const
FXbool contains (const FXVec2f &p) const
FXbool contains (const FXExtentf &ext) const
FXExtentfinclude (FXfloat x, FXfloat y)
FXExtentfinclude (const FXVec2f &v)
FXExtentfinclude (const FXExtentf &ext)
FXVec2f corner (FXint c) const

Public Attributes

FXVec2f lower
FXVec2f upper

Friends

FXbool overlap (const FXExtentf &a, const FXExtentf &b)
FXExtentf unite (const FXExtentf &a, const FXExtentf &b)
FXExtentf intersect (const FXExtentf &a, const FXExtentf &b)
FXStreamoperator<< (FXStream &store, const FXExtentf &ext)
FXStreamoperator>> (FXStream &store, FXExtentf &ext)


Detailed Description

Extent.

Constructor & Destructor Documentation

FX::FXExtentf::FXExtentf (  )  [inline]

Default constructor; value is not initialized.

FX::FXExtentf::FXExtentf ( const FXExtentf ext  )  [inline]

Copy constructor.

FX::FXExtentf::FXExtentf ( const FXVec2f p  )  [inline]

Initialize with a single point.

FX::FXExtentf::FXExtentf ( const FXVec2f lo,
const FXVec2f hi 
) [inline]

Initialize from corner points.

FX::FXExtentf::FXExtentf ( FXfloat  x,
FXfloat  y 
) [inline]

Initialize with a single point.

FX::FXExtentf::FXExtentf ( FXfloat  xl,
FXfloat  xh,
FXfloat  yl,
FXfloat  yh 
) [inline]

Initialize with explicit values.


Member Function Documentation

FXExtentf& FX::FXExtentf::operator= ( const FXExtentf ext  )  [inline]

Assignment.

References lower, and upper.

FXExtentf& FX::FXExtentf::set ( const FXExtentf ext  )  [inline]

Set value from another range.

FXExtentf& FX::FXExtentf::set ( const FXVec2f p  )  [inline]

Set value from single point.

FXExtentf& FX::FXExtentf::set ( const FXVec2f lo,
const FXVec2f hi 
) [inline]

Set value from corner points.

References FX::hi(), and FX::lo().

FXExtentf& FX::FXExtentf::set ( FXfloat  x,
FXfloat  y 
) [inline]

Set value from single point.

References FX::FXVec2d::x.

FXExtentf& FX::FXExtentf::set ( FXfloat  xl,
FXfloat  xh,
FXfloat  yl,
FXfloat  yh 
) [inline]

Set value from explicit values.

FXVec2f& FX::FXExtentf::operator[] ( FXint  i  )  [inline]

Indexing with 0..1.

const FXVec2f& FX::FXExtentf::operator[] ( FXint  i  )  const [inline]

Indexing with 0..1.

FXbool FX::FXExtentf::operator== ( const FXExtentf ext  )  const [inline]

Comparison.

References lower, and upper.

FXbool FX::FXExtentf::operator!= ( const FXExtentf ext  )  const [inline]

References lower, and upper.

FXfloat FX::FXExtentf::width (  )  const [inline]

Width of box.

FXfloat FX::FXExtentf::height (  )  const [inline]

Height of box.

FXfloat FX::FXExtentf::longest (  )  const

Longest side.

FXfloat FX::FXExtentf::shortest (  )  const

shortest side

FXfloat FX::FXExtentf::diameter (  )  const

Length of diagonal.

FXfloat FX::FXExtentf::radius (  )  const

Get radius of box.

FXVec2f FX::FXExtentf::diagonal (  )  const

Compute diagonal.

FXVec2f FX::FXExtentf::center (  )  const

Get center of box.

FXbool FX::FXExtentf::empty (  )  const

Test if empty.

FXbool FX::FXExtentf::contains ( FXfloat  x,
FXfloat  y 
) const

Test if box contains point x,y.

FXbool FX::FXExtentf::contains ( const FXVec2f p  )  const

Test if box contains point p.

FXbool FX::FXExtentf::contains ( const FXExtentf ext  )  const

Test if box properly contains another box.

FXExtentf& FX::FXExtentf::include ( FXfloat  x,
FXfloat  y 
)

Include point.

FXExtentf& FX::FXExtentf::include ( const FXVec2f v  ) 

Include point.

FXExtentf& FX::FXExtentf::include ( const FXExtentf ext  ) 

Include given range into extent.

FXVec2f FX::FXExtentf::corner ( FXint  c  )  const [inline]

Get corner number 0..3.


Friends And Related Function Documentation

FXbool overlap ( const FXExtentf a,
const FXExtentf b 
) [friend]

Test if bounds overlap.

FXExtentf unite ( const FXExtentf a,
const FXExtentf b 
) [friend]

Union of two boxes.

FXExtentf intersect ( const FXExtentf a,
const FXExtentf b 
) [friend]

Intersection of two boxes.

FXStream& operator<< ( FXStream store,
const FXExtentf ext 
) [friend]

Save object to a stream.

FXStream& operator>> ( FXStream store,
FXExtentf ext 
) [friend]

Load object from a stream.


Member Data Documentation

Copyright © 1997-2009 Jeroen van der Zijp