LeviLamina
Loading...
Searching...
No Matches
BoundingBox Class Reference
+ Inheritance diagram for BoundingBox:

Public Types

using first_type
 
using size_type
 

Public Member Functions

constexpr BoundingBox (class BoundingBox const &k) noexcept=default
 
constexpr BoundingBoxoperator= (class BoundingBox const &k) noexcept=default
 
constexpr BoundingBox (BlockPos const &min, BlockPos const &max) noexcept
 
ll::coro::Generator< BlockPosforEachPos () const
 
constexpr BoundingBoxmerge (BoundingBox const &a) noexcept
 
constexpr BoundingBoxmerge (BlockPos const &a) noexcept
 
template<typename T , size_t N>
constexpr T & get () noexcept
 
template<typename T , size_t N>
constexpr T const & get () const noexcept
 
bool contains (BlockPos const &a) const noexcept
 
bool contains (BoundingBox const &a) const noexcept
 
BlockPos getSideLength () const noexcept
 
LLNDAPI operator class AABB () const
 
MCAPI BoundingBox (int _x0, int _y0, int _z0, int _x1, int _y1, int _z1)
 
MCAPI void applyTransformation (::BlockPos const &pivot, ::Rotation rotationXZ, bool mirrorX, bool mirrorZ)
 
MCAPI bool isValid () const
 
MCFOLD void * $ctor ()
 
MCAPI void * $ctor (int _x0, int _y0, int _z0, int _x1, int _y1, int _z1)
 
constexpr BoundingBoxoperator+= (BoundingBox const &b) noexcept
 
constexpr BoundingBoxoperator+= (V const &b) noexcept
 
constexpr BoundingBoxoperator-= (BoundingBox const &b) noexcept
 
constexpr BoundingBoxoperator-= (V const &b) noexcept
 
constexpr BoundingBox operator+ (BoundingBox const &b) const noexcept
 
constexpr BoundingBox operator+ (V const &b) const noexcept
 
constexpr BoundingBox operator- (BoundingBox const &b) const noexcept
 
constexpr BoundingBox operator- (V const &b) const noexcept
 
constexpr BoundingBox add (BoundingBox const &b) const noexcept
 
constexpr BoundingBox add (V const &b) const noexcept
 
constexpr BoundingBox sub (BoundingBox const &b) const noexcept
 
constexpr BoundingBox sub (V const &b) const noexcept
 
constexpr std::string toString () const noexcept
 
constexpr bool operator== (BoundingBox const &b) const noexcept
 
constexpr bool operator!= (BoundingBox const &b) const noexcept
 
constexpr first_type & operator[] (size_t index) noexcept
 
constexpr first_type const & operator[] (size_t index) const noexcept
 
constexpr size_t hash () const noexcept
 
constexpr V as () const noexcept
 
constexpr class boolN< sizeof...(Components)> eq (BoundingBox const &b) const noexcept
 
constexpr class boolN< sizeof...(Components)> ne (BoundingBox const &b) const noexcept
 

Static Public Member Functions

static MCAPI ::std::optional<::BoundingBoxintersect (::BoundingBox const &lhs, ::BoundingBox const &rhs)
 
static MCAPI ::BoundingBox orientBox (int footX, int footY, int footZ, int offX, int offY, int width, int height, int depth, int orientation, int offZ)
 
static consteval size_t size () noexcept
 
static constexpr void forEachComponent (F &&func) noexcept
 

Public Attributes

union { 
 
   BlockPos   min 
 
   BlockPos   x 
 
   BlockPos   r 
 
   BlockPos   s 
 
};  
 
union { 
 
   BlockPos   max 
 
   BlockPos   y 
 
   BlockPos   g 
 
   BlockPos   t 
 
   BlockPos   z 
 
   BlockPos   b 
 
   BlockPos   p 
 
};  
 

The documentation for this class was generated from the following file: