Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
AABB Class Reference
Inheritance diagram for AABB:

Public Types

using first_type
using size_type

Public Member Functions

constexpr AABB (class AABB const &k) noexcept
constexpr AABB (class Vec3 const &min, class Vec3 const &max) noexcept
constexpr AABB & operator= (const AABB &) noexcept=default
AABB & merge (AABB const &a) noexcept
AABB & merge (Vec3 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
constexpr bool contains (Vec3 const &a) const noexcept
constexpr bool contains (AABB const &a) const noexcept
LLAPI operator BoundingBox () const
LLAPI bool intersects (::AABB const &c) const
constexpr Vec3 center () const noexcept
constexpr AABB & shrink (float f) noexcept
constexpr AABB & shrink (Vec3 const &offset) noexcept
MCAPI::AABBHitResult clip (::Vec3 const &a, ::Vec3 const &b) const
MCAPI::AABB cloneAndFloor (float offsetMin, float offsetMax) const
MCAPI::AABB cloneAndGrow (::Vec3 const &distance) const
MCAPI::AABB cloneAndGrow (float radius) const
MCAPI::AABB cloneAndShrink (::Vec3 const &offset) const
MCAPI::AABB cloneAndTransformByMatrix (::Matrix const &transform) const
MCAPI::AABB cloneAndTranslate (::Vec3 const &offset) const
MCAPI float distanceTo (::AABB const &aabb) const
MCAPI bool intersectSegment (::Vec3 const &segmentBegin, ::Vec3 const &segmentEnd, ::Vec3 &intersectPoint, ::Vec3 &intersectNorm) const
MCAPI bool intersects (::Vec3 const &segmentBegin, ::Vec3 const &segmentEnd) const
MCAPI void * $ctor (::Vec3 const &min, ::Vec3 const &max)
constexpr AABB & operator+= (AABB const &b) noexcept
constexpr AABB & operator-= (AABB const &b) noexcept
constexpr AABB operator+ (AABB const &b) const noexcept
constexpr AABB operator- (AABB const &b) const noexcept
constexpr AABB add (AABB const &b) const noexcept
constexpr AABB sub (AABB const &b) const noexcept
constexpr std::string toString () const noexcept
constexpr bool operator== (AABB const &b) const noexcept
constexpr bool operator!= (AABB const &b) const noexcept
constexpr first_type & operator[] (size_t index) noexcept
constexpr size_t hash () const noexcept
constexpr V as () const noexcept
constexpr class boolN< sizeof...(Components)> eq (AABB const &b) const noexcept
constexpr class boolN< sizeof...(Components)> ne (AABB const &b) const noexcept

Static Public Member Functions

static MCAPI ::AABB aroundRadius (::Vec3 const &point, float radius)
static MCAPI ::ClipCollideResult clipCollide (::AABB const &stationary, ::AABB const &moving, ::Vec3 const &velocity)
static MCAPI ::AABB const & BLOCK_SHAPE ()
static MCAPI ::AABB const & BOX_AT_ORIGIN_WITH_NO_VOLUME ()
static consteval size_t size () noexcept
static constexpr void forEachComponent (F &&func) noexcept

Public Attributes

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

Member Function Documentation

◆ cloneAndFloor()

MCAPI::AABB AABB::cloneAndFloor ( float offsetMin,
float offsetMax ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ cloneAndShrink()

MCAPI::AABB AABB::cloneAndShrink ( ::Vec3 const & offset) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ cloneAndTransformByMatrix()

MCAPI::AABB AABB::cloneAndTransformByMatrix ( ::Matrix const & transform) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ cloneAndTranslate()

MCAPI::AABB AABB::cloneAndTranslate ( ::Vec3 const & offset) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ intersectSegment()

MCAPI bool AABB::intersectSegment ( ::Vec3 const & segmentBegin,
::Vec3 const & segmentEnd,
::Vec3 & intersectPoint,
::Vec3 & intersectNorm ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ intersects()

MCAPI bool AABB::intersects ( ::Vec3 const & segmentBegin,
::Vec3 const & segmentEnd ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ aroundRadius()

MCAPI ::AABB AABB::aroundRadius ( ::Vec3 const & point,
float radius )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ clipCollide()

MCAPI ::ClipCollideResult AABB::clipCollide ( ::AABB const & stationary,
::AABB const & moving,
::Vec3 const & velocity )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ BLOCK_SHAPE()

MCAPI ::AABB const & AABB::BLOCK_SHAPE ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * AABB::$ctor ( ::Vec3 const & min,
::Vec3 const & max )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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