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

FX::FXExtentd Class Reference

Extent. More...

#include <FXExtentd.h>

List of all members.

Public Member Functions

 FXExtentd ()
 FXExtentd (const FXExtentd &ext)
 FXExtentd (const FXVec2d &lo, const FXVec2d &hi)
 FXExtentd (FXdouble xlo, FXdouble xhi, FXdouble ylo, FXdouble yhi)
FXExtentdoperator= (const FXExtentd &ext)
FXVec2doperator[] (FXint i)
const FXVec2doperator[] (FXint i) const
bool operator== (const FXExtentd &ext) const
bool operator!= (const FXExtentd &ext) const
FXdouble width () const
FXdouble height () const
FXdouble longest () const
FXdouble shortest () const
FXdouble diameter () const
FXdouble radius () const
FXVec2d diagonal () const
FXVec2d center () const
bool empty () const
bool contains (FXdouble x, FXdouble y) const
bool contains (const FXVec2d &p) const
bool contains (const FXExtentd &ext) const
FXExtentdinclude (FXdouble x, FXdouble y)
FXExtentdinclude (const FXVec2d &v)
FXExtentdinclude (const FXExtentd &ext)
FXVec2d corner (FXint c) const

Public Attributes

FXVec2d lower
FXVec2d upper

Friends

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


Detailed Description

Extent.


Constructor & Destructor Documentation

FX::FXExtentd::FXExtentd  )  [inline]
 

Default constructor.

FX::FXExtentd::FXExtentd const FXExtentd ext  )  [inline]
 

Copy constructor.

FX::FXExtentd::FXExtentd const FXVec2d lo,
const FXVec2d hi
[inline]
 

Initialize from two vectors.

FX::FXExtentd::FXExtentd FXdouble  xlo,
FXdouble  xhi,
FXdouble  ylo,
FXdouble  yhi
[inline]
 

Initialize from six numbers.


Member Function Documentation

FXExtentd& FX::FXExtentd::operator= const FXExtentd ext  )  [inline]
 

Assignment.

FXVec2d& FX::FXExtentd::operator[] FXint  i  )  [inline]
 

Indexing with 0..1.

const FXVec2d& FX::FXExtentd::operator[] FXint  i  )  const [inline]
 

Indexing with 0..1.

bool FX::FXExtentd::operator== const FXExtentd ext  )  const [inline]
 

Comparison.

bool FX::FXExtentd::operator!= const FXExtentd ext  )  const [inline]
 

FXdouble FX::FXExtentd::width  )  const [inline]
 

Width of box.

FXdouble FX::FXExtentd::height  )  const [inline]
 

Height of box.

FXdouble FX::FXExtentd::longest  )  const
 

Longest side.

FXdouble FX::FXExtentd::shortest  )  const
 

shortest side

FXdouble FX::FXExtentd::diameter  )  const
 

Length of diagonal.

FXdouble FX::FXExtentd::radius  )  const
 

Get radius of box.

FXVec2d FX::FXExtentd::diagonal  )  const
 

Compute diagonal.

FXVec2d FX::FXExtentd::center  )  const
 

Get center of box.

bool FX::FXExtentd::empty  )  const
 

Test if empty.

bool FX::FXExtentd::contains FXdouble  x,
FXdouble  y
const
 

Test if box contains point x,y.

bool FX::FXExtentd::contains const FXVec2d p  )  const
 

Test if box contains point p.

bool FX::FXExtentd::contains const FXExtentd ext  )  const
 

Test if box properly contains another box.

FXExtentd& FX::FXExtentd::include FXdouble  x,
FXdouble  y
 

Include point.

FXExtentd& FX::FXExtentd::include const FXVec2d v  ) 
 

Include point.

FXExtentd& FX::FXExtentd::include const FXExtentd ext  ) 
 

Include given range into extent.

FXVec2d FX::FXExtentd::corner FXint  c  )  const [inline]
 

Get corner number 0..3.


Friends And Related Function Documentation

bool overlap const FXExtentd a,
const FXExtentd b
[friend]
 

Test if bounds overlap.

FXExtentd unite const FXExtentd a,
const FXExtentd b
[friend]
 

Union of two boxes.

FXExtentd intersect const FXExtentd a,
const FXExtentd b
[friend]
 

Intersection of two boxes.

FXStream& operator<< FXStream store,
const FXExtentd ext
[friend]
 

Save object to a stream.

FXStream& operator>> FXStream store,
FXExtentd ext
[friend]
 

Load object from a stream.


Member Data Documentation

FXVec2d FX::FXExtentd::lower
 

FXVec2d FX::FXExtentd::upper
 

Copyright © 1997-2005 Jeroen van der Zijp