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
(Pt
c}
(Pt c}
(CbSbBox2f(Cr()
(Pt
c}
(Pt c}
(CbSbBox2f(Cr(float xmin, float ymin, float xmax float ymax)
(Pt
c}
(Pt c}
(CbSbBox2f(Cr(const SbVec2f &min, const SbVec2f &max)
(Pt
c}
(Pt c}
(Cb~SbBox2f(Cr()
<1>Constructors and destructor for a 2D float box. (Crxmin1><1>, (Crymin1><1>, (Crxmax1><1>, and (Crymax1><1> are the bounds of the box. (Crmin1><1> and (Crmax1><1> are the corners of the diagonal that define the box.
1>(Pt
c}
(Pt c}
(CbgetMin(Cr()
(Pt
c}
(Pt c}
(CbgetMax(Cr()
<1>Returns the minimum and maximum points of the box.
1>(Pt
c}
(Pt c}
(CbgetCenter(Cr()
<1>Returns the center of the box.
1>(Pt
c}
(Pt c}
(CbextendBy(Cr(const SbVec2f &point)
(Pt
c}
(Pt c}
(CbextendBy(Cr(const SbBox2f &box)
<1>Extends this box (if necessary) to contain the specified point or other box.
1>(Pt
c}
(Pt c}
(Cbintersect(Cr(const SbVec2f &point)
(Pt
c}
(Pt c}
(Cbintersect(Cr(const SbBox2f &box)
<1>Returns (CrTRUE1><1> if the specified (Crpoint1><1> or (Crbox1><1> intersects this box.
1>(Pt
c}
(Pt c}
(CbsetBounds(Cr(float xmin, float ymin, float xmax, float ymax)
(Pt
c}
(Pt c}
(CbsetBounds(Cr(const SbVec2f &min, const SbVec2f &max)
<1>Sets the corners of the box.
1>(Pt
c}
(Pt c}
(CbgetBounds(Cr(float &xmin, float &ymin, float &xmax, float &ymax)
(Pt
c}
(Pt c}
(CbgetBounds(Cr(SbVec2f &min, SbVec2f &max)
<1>Gets the corners of the box.