4.6.0
Freundlich's C++ toolkit
|
A class representing axis aligned boxes, cubes, hypercubes, ...
T | The box's value_type |
N | The box's (numeric) dimension |
Public Types | |
using | value_type = T |
A type that represents the data type stored in a box's vector/dimension. | |
using | dim_wrapper = fcppt::math::static_size<N> |
using | scalar = value_type |
A type that represents the data type stored in a box's vector/dimension (synonymous to value_type). | |
using | size_type = fcppt::math::size_type |
A type that counts the number of elements in a box's vector/dimension. | |
using | vector = fcppt::math::vector::static_<T, N> |
A type represents a box's position. | |
using | dim = fcppt::math::dim::static_<T, N> |
A type represents a box's size. | |
using | min_t = fcppt::strong_typedef< vector ,_> |
using | max_t = fcppt::strong_typedef< vector ,_> |
Public Member Functions | |
object (fcppt::no_init const &) | |
Construct an uninitialized box. | |
object (vector const &pos, dim const &size) | |
Construct a box from position and size. | |
object (min_t &&, max_t &&) | |
Construct a box from two positions. | |
vector & | pos () |
Return the box's position. | |
vector const & | pos () const |
vector & | min () |
vector const & | min () const |
vector & | max () |
vector const & | max () const |
dim | size () const |
value_type | left () const |
value_type | right () const |
value_type | top () const |
value_type | bottom () const |
value_type | front () const |
value_type | back () const |
using fcppt::math::box::object< T, N >::dim = fcppt::math::dim::static_<T, N> |
A type represents a box's size.
using fcppt::math::box::object< T, N >::dim_wrapper = fcppt::math::static_size<N> |
using fcppt::math::box::object< T, N >::max_t = fcppt::strong_typedef< vector ,_> |
using fcppt::math::box::object< T, N >::min_t = fcppt::strong_typedef< vector ,_> |
using fcppt::math::box::object< T, N >::scalar = value_type |
A type that represents the data type stored in a box's vector/dimension (synonymous to value_type).
using fcppt::math::box::object< T, N >::size_type = fcppt::math::size_type |
A type that counts the number of elements in a box's vector/dimension.
using fcppt::math::box::object< T, N >::value_type = T |
A type that represents the data type stored in a box's vector/dimension.
using fcppt::math::box::object< T, N >::vector = fcppt::math::vector::static_<T, N> |
A type represents a box's position.
|
explicit |
Construct an uninitialized box.
fcppt::math::box::object< T, N >::object | ( | vector const & | pos, |
dim const & | size ) |
Construct a box from position and size.
fcppt::math::box::object< T, N >::object | ( | min_t && | , |
max_t && | ) |
Construct a box from two positions.
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
Return the box's position.
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |