Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SbBox2f(3IV)()							SbBox2f(3IV)()

NAME
       SbBox2f -- 2D box class

INHERITS FROM
       SbBox2f

SYNOPSIS
       #include	<Inventor/SbBox.h>

	  Methods from class SbBox2f:

			 SbBox2f()
			 SbBox2f(float	xmin,  float  ymin,  float  xmax float
			      ymax)
			 SbBox2f(const SbVec2f &min, const SbVec2f &max)
     void		 ~SbBox2f()
     const SbVec2f &	 getMin()
     const SbVec2f &	 getMax()
     SbVec2f		 getCenter()
     void		 extendBy(const	SbVec2f	&point)
     void		 extendBy(const	SbBox2f	&box)
     SbBool		 intersect(const SbVec2f &point)
     SbBool		 intersect(const SbBox2f &box)
     void		 setBounds(float xmin, float ymin, float  xmax,	 float
			      ymax)
     void		 setBounds(const SbVec2f &min, const SbVec2f &max)
     void		 getBounds(float  &xmin,  float	 &ymin,	 float	&xmax,
			      float &ymax)
     void		 getBounds(SbVec2f &min, SbVec2f &max)
     void		 getOrigin(float &x0, float &y0)
     void		 getSize(float &x, float &y)
     float		 getAspectRatio()
     void		 makeEmpty()
     SbBool		 isEmpty()
     SbBool		 hasArea()

DESCRIPTION
       2D box which has	planes parallel	to the major axes and is specified  by
       two  points  (specified as floating point) on a diagonal. This class is
       part of the standard Inventor datatype classes and is used as input and
       output to geometry operations.

METHODS
			 SbBox2f()
			 SbBox2f(float	xmin,  float  ymin,  float  xmax float
			      ymax)
			 SbBox2f(const SbVec2f &min, const SbVec2f &max)
     void		 ~SbBox2f()
	  Constructors and destructor for a 2D float box.  xmin,  ymin,	 xmax,
	  and  ymax  are the bounds of the box.	min and	max are	the corners of
	  the diagonal that define the box.

     const SbVec2f &	 getMin()
     const SbVec2f &	 getMax()
	  Returns the minimum and maximum points of the	box.

     SbVec2f		 getCenter()
	  Returns the center of	the box.

     void		 extendBy(const	SbVec2f	&point)
     void		 extendBy(const	SbBox2f	&box)
	  Extends this box (if necessary) to contain the  specified  point  or
	  other	box.

     SbBool		 intersect(const SbVec2f &point)
     SbBool		 intersect(const SbBox2f &box)
	  Returns TRUE if the specified	point or box intersects	this box.

     void		 setBounds(float  xmin,	 float ymin, float xmax, float
			      ymax)
     void		 setBounds(const SbVec2f &min, const SbVec2f &max)
	  Sets the corners of the box.

     void		 getBounds(float  &xmin,  float	 &ymin,	 float	&xmax,
			      float &ymax)
     void		 getBounds(SbVec2f &min, SbVec2f &max)
	  Gets the corners of the box.

     void		 getOrigin(float &x0, float &y0)
	  Gets box origin.

     void		 getSize(float &x, float &y)
	  Gets box size.

     float		 getAspectRatio()
	  Gets box aspect ratio.

     void		 makeEmpty()
	  Makes	an empty box.

     SbBool		 isEmpty()
	  Returns TRUE if the box is empty, and	FALSE otherwise.

     SbBool		 hasArea()
	  Returns  TRUE	 if both dimensions of the box have positive size, and
	  FALSE	otherwise.

FILE FORMAT/DEFAULTS
SEE ALSO
       SbBox3f,	SbXfBox3f, SbBox2s, SbVec3f, SbVec2f, SbVec2s, SbMatrix

								SbBox2f(3IV)()

NAME | INHERITS FROM | SYNOPSIS | DESCRIPTION | METHODS | FILE FORMAT/DEFAULTS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SbBox2f&sektion=3iv&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help