|
|
Box & | Init () noexcept |
| | Initializes the interval to origin.
|
|
bool | Normal () const noexcept |
| | Is the box normalized?
|
|
Box & | Normalize () noexcept |
| | Normalizes the box by changing the corners, so that the near corner has smaller coordinates than the far corner.
|
| const Position< Valtype > | Near () const noexcept |
| const Position< Valtype > | Far () const noexcept |
| Valtype | NearX () const noexcept |
| Valtype | NearY () const noexcept |
| Valtype | NearZ () const noexcept |
| Valtype | FarX () const noexcept |
| Valtype | FarY () const noexcept |
| Valtype | FarZ () const noexcept |
|
Box & | NearX (Valtype val) noexcept |
| | Sets the near X dimension value of this Box.
|
|
Box & | NearY (Valtype val) noexcept |
| | Sets the near Y dimension value of this Box.
|
|
Box & | NearZ (Valtype val) noexcept |
| | Sets the near Z dimension value of this Box.
|
|
Box & | FarX (Valtype val) noexcept |
| | Sets the far X dimension value of this Box.
|
|
Box & | FarY (Valtype val) noexcept |
| | Sets the far Y dimension value of this Box.
|
|
Box & | FarZ (Valtype val) noexcept |
| | Sets the far Z dimension value of this Box.
|
| Valtype | EdgeX () const noexcept |
|
Box & | EdgeX (Valtype width) noexcept |
| | Sets the width of the edge by centering it around 0.
|
| Valtype | EdgeY () const noexcept |
|
Box & | EdgeY (Valtype width) noexcept |
| | Sets the width of the edge by centering it around 0.
|
| Valtype | EdgeZ () const noexcept |
|
Box & | EdgeZ (Valtype width) noexcept |
| | Sets the width of the edge by centering it around 0.
|
| auto | Volume () const noexcept -> decltype(Valtype{} *Valtype{} *Valtype{}) |
| Vector< Valtype > | Diagonal () const noexcept |
| Position< Valtype > | Center () const noexcept |
|
Box & | Union (const Box &b1, const Box &b2) noexcept |
| | Calculates the union of the two Boxes.
|
|
Box & | Union (const Box &box) noexcept |
| | Calculates the union of this and rect.
|
| bool | Includes (Valtype x, Valtype y, Valtype z) const noexcept |
| bool | Includes (const Position< Valtype > &pt) const noexcept |
| Box & | Expand (Valtype x, Valtype y, Valtype z) noexcept |
| | Expands the box so that it touches (being included or laying on border) the point.
|
| Box & | Expand (const Position< Valtype > &pt) noexcept |
| | Expands the box so that it touches (being included or laying on border) the point.
|
| Box & | Inflate (Valtype dx, Valtype dy, Valtype dz) noexcept |
| | Moves the edges to the outside of the box, thereyby inflating it.
|
| Box & | Deflate (Valtype dx, Valtype dy, Valtype dz) noexcept |
| | Moves the edges to the inward side of the box, thereyby deflating it.
|
|
Box & | Move (const Vector< Valtype > &dPos) noexcept |
| | Moves the box by dPos.
|
|
Box & | Round (int toDigit) noexcept |
| | Rounds the boxes values to a certain digit after the point.
|
- Parameters
-
| xext | |
| yext | |
| zext | |
| cuboid | |
| xnear | |
| ynear | |
| znear | |
| xfar | |
| yfar | |
| zfar | |
| nearCorner | |
| farCorner | |
|
|
| Box () noexcept=default |
| | Does not initialize the members.
|
|
| Box (Valtype xext, Valtype yext, Valtype zext) noexcept |
| | Does not initialize the members.
|
|
| Box (const Vector< Valtype > &cuboid) noexcept |
| | Does not initialize the members.
|
|
| Box (Valtype xnear, Valtype ynear, Valtype znear, Valtype xfar, Valtype yfar, Valtype zfar) noexcept |
| | Does not initialize the members.
|
|
| Box (const Position< Valtype > &nearCorner, const Position< Valtype > &farCorner) noexcept |
| | Does not initialize the members.
|
template<typename Valtype>
struct spat::Box< Valtype >
Axis aligned box.