.
---C++: inline
Set(me : in out; P : Pnt2d; D : Dir2d) is static;
---Purpose: Sets this 2D bounding box so that it bounds
-- the half-line defined by point P and direction D, i.e. all
-- points M defined by M=P+u*D, where u is greater than
-- or equal to 0, are inside the bounding area. This involves
-- first setting this 2D box to be void and then adding the half-line.
---C++: inline
Update(me : in out; aXmin, aYmin, aXmax, aYmax : Real)
---Purpose: Enlarges this 2D bounding box, if required, so that it
-- contains at least:
-- - interval [ aXmin,aXmax ] in the "X Direction",
-- - interval [ aYmin,aYmax ] in the "Y Direction"
is static;
Update(me : in out; X,Y : Real)
---Purpose: Adds a point of coordinates (X,Y) to this bounding box.
is static;
GetGap(me) returns Real
---Purpose: Returns the gap of this 2D bounding box.
---C++: inline
is static;
SetGap(me : in out; Tol : Real)
---Purpose: Set the gap of this 2D bounding box to abs(Tol).
---C++: inline
is static;
Enlarge(me : in out; Tol : Real)
---Purpose: Enlarges the box with a tolerance value.
-- This means that the minimum values of its X and Y
-- intervals of definition, when they are finite, are reduced by
-- the absolute value of Tol, while the maximum values are
-- increased by the same amount.
---C++: inline
is static;
Get(me; aXmin, aYmin, aXmax, aYmax : out Real)
---Purpose: Returns the bounds of this 2D bounding box.
-- The gap is included. If this bounding box is infinite (i.e. "open"), returned values
-- may be equal to +/- Precision::Infinite().
raises ConstructionError -- if IsVoid()
is static;
OpenXmin(me : in out)
---Purpose: The Box will be infinitely long in the Xmin direction.
---Level: Public
---C++: inline
is static;
OpenXmax(me : in out)
---Purpose: The Box will be infinitely long in the Xmax direction.
---Level: Public
---C++: inline
is static;
OpenYmin(me : in out)
---Purpose: The Box will be infinitely long in the Ymin direction.
---Level: Public
---C++: inline
is static;
OpenYmax(me : in out)
---Purpose: The Box will be infinitely long in the Ymax direction.
---Level: Public
---C++: inline
is static;
IsOpenXmin(me) returns Boolean
---Purpose: Returns true if this bounding box is open in the Xmin direction.
---C++: inline
is static;
IsOpenXmax(me) returns Boolean
---Purpose: Returns true if this bounding box is open in the Xmax direction.
---C++: inline
is static;
IsOpenYmin(me) returns Boolean
---Purpose: Returns true if this bounding box is open in the Ymin direction.
---C++: inline
is static;
IsOpenYmax(me) returns Boolean
---Purpose: Returns true if this bounding box is open in the Ymax direction.
---C++: inline
is static;
IsWhole(me) returns Boolean is static;
---Purpose:
-- Returns true if this bounding box is infinite in all 4
-- directions (Whole Space flag).
---C++: inline
IsVoid(me) returns Boolean is static;
---Purpose:
-- Returns true if this 2D bounding box is empty (Void flag).
---C++: inline
Transformed(me; T : Trsf2d from gp)
---Purpose: Returns a bounding box which is the result of applying the
-- transformation T to this bounding box.
-- Warning
-- Applying a geometric transformation (for example, a
-- rotation) to a bounding box generally increases its
-- dimensions. This is not optimal for algorithms which use it.
returns Box2d from Bnd is static;
Add(me : in out; Other : Box2d) is static;
---Purpose: Adds the 2d box

to

in the direction

is out