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 ()
 Default constructor; value is not initialized.
 FXExtentd (const FXExtentd &ext)
 Copy constructor.
 FXExtentd (const FXVec2d &p)
 Initialize with a single point.
 FXExtentd (const FXVec2d &lo, const FXVec2d &hi)
 Initialize from corner points.
 FXExtentd (FXdouble x, FXdouble y)
 Initialize with a single point.
 FXExtentd (FXdouble xl, FXdouble xh, FXdouble yl, FXdouble yh)
 Initialize with explicit values.
FXExtentdoperator= (const FXExtentd &ext)
 Assignment.
FXExtentdset (const FXExtentd &ext)
 Set value from another range.
FXExtentdset (const FXVec2d &p)
 Set value from single point.
FXExtentdset (const FXVec2d &lo, const FXVec2d &hi)
 Set value from corner points.
FXExtentdset (FXdouble x, FXdouble y)
 Set value from single point.
FXExtentdset (FXdouble xl, FXdouble xh, FXdouble yl, FXdouble yh)
 Set value from explicit values.
FXVec2doperator[] (FXint i)
 Indexing with 0..1.
const FXVec2doperator[] (FXint i) const
 Indexing with 0..1.
FXbool operator== (const FXExtentd &ext) const
 Comparison.
FXbool operator!= (const FXExtentd &ext) const
FXdouble width () const
 Width of box.
FXdouble height () const
 Height of box.
FXdouble area () const
 Area.
FXdouble longest () const
 Longest side.
FXdouble shortest () const
 Shortest side.
FXdouble diameter () const
 Length of diagonal.
FXdouble radius () const
 Get radius of box.
FXVec2d diagonal () const
 Compute diagonal.
FXVec2d center () const
 Get center of box.
FXbool empty () const
 Test if empty.
FXbool contains (FXdouble x, FXdouble y) const
 Test if box contains point x,y.
FXbool contains (const FXVec2d &p) const
 Test if box contains point p.
FXbool contains (const FXExtentd &ext) const
 Test if box properly contains another box.
FXExtentdinclude (FXdouble x, FXdouble y)
 Include point.
FXExtentdinclude (const FXVec2d &v)
 Include point.
FXExtentdinclude (const FXExtentd &ext)
 Include given range into extent.
FXbool intersect (const FXVec2d &u, const FXVec2d &v) const
 Intersect box with ray u-v.
FXbool intersect (const FXVec2d &pos, const FXVec2d &dir, FXdouble hit[]) const
 Intersect box with ray pos+lambda*dir, returning true if hit.
FXVec2d corner (FXint c) const
 Get corner number 0..3.
 ~FXExtentd ()
 Destructor.

Public Attributes

FXVec2d lower
FXVec2d upper

Detailed Description

Extent.


The documentation for this class was generated from the following file:

Copyright © 1997-2016 Jeroen van der Zijp