CGAL 4.10.2 - Kinetic Data Structures
|
#include <CGAL/Kinetic/Enclosing_box_2.h>
The class Kinetic::Enclosing_box_2
keeps the points in the simulation inside of a box.
Whenever the points come close to the wall of the box they bounce off of the wall.
Note that, in general, points hit the wall of the box at times which are not easily represented by standard (rational) number types. The resulting trajectories would also have non-rational coefficients, complicating and slowing the simulation. In order to handle this, the Kinetic::Enclosing_box_2
bounces the points at the nearest easily representable time before the point would leave the box.
Types | |
typedef unspecified_type | NT |
The number type used to represent the walls of the box and perform calculations. More... | |
Creation | |
Enclosing_box_2 (Traits, NT xmin, NT xmax, NT ymin, NT ymax) | |
This constructs a bounding box with the dimensions specified by the last 4 arguments. More... | |
typedef unspecified_type CGAL::Kinetic::Enclosing_box_2< Traits >::NT |
The number type used to represent the walls of the box and perform calculations.
Generally this is Traits::NT
.
CGAL::Kinetic::Enclosing_box_2< Traits >::Enclosing_box_2 | ( | Traits | , |
NT | xmin, | ||
NT | xmax, | ||
NT | ymin, | ||
NT | ymax | ||
) |
This constructs a bounding box with the dimensions specified by the last 4 arguments.
They are optional and will take the values \( \pm\) 10 if omitted.