LeviLamina
Loading...
Searching...
No Matches
ScriptBlockBoundingBoxUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class BoundingBox;
8class Vec3;
9namespace Scripting { struct ClassBinding; }
10// clang-format on
11
12namespace ScriptModuleMinecraft {
13
15public:
16 // static functions
17 // NOLINTBEGIN
18 MCNAPI static ::Scripting::ClassBinding bind();
19
20 MCNAPI static ::BoundingBox createValid(::Vec3 const& min, ::Vec3 max);
21
22 MCNAPI static ::BoundingBox dilate(::BoundingBox const& box, ::Vec3 const& size);
23
24 MCNAPI static ::BoundingBox expand(::BoundingBox const& box, ::BoundingBox const& other);
25
26 MCNAPI static ::Vec3 getCenter(::BoundingBox const& box);
27
28 MCNAPI static ::std::optional<::BoundingBox> getIntersection(::BoundingBox const& box, ::BoundingBox const& other);
29
30 MCNAPI static ::Vec3 getSpan(::BoundingBox const& box);
31
32 MCNAPI static bool intersects(::BoundingBox const& box, ::BoundingBox const& other);
33
34 MCNAPI static bool isInside(::BoundingBox const& box, ::Vec3 const& pos);
35
36 MCNAPI static bool isValid(::BoundingBox const& box);
37
38 MCNAPI static ::BoundingBox translate(::BoundingBox const& box, ::Vec3 const& delta);
39 // NOLINTEND
40};
41
42} // namespace ScriptModuleMinecraft
Definition BoundingBox.h:13
Definition ScriptBlockBoundingBoxUtils.h:14
static MCAPI ::std::optional<::BoundingBox > getIntersection(::BoundingBox const &box, ::BoundingBox const &other)
static MCAPI bool isInside(::BoundingBox const &box, ::Vec3 const &pos)
static MCAPI ::BoundingBox translate(::BoundingBox const &box, ::Vec3 const &delta)
static MCAPI bool isValid(::BoundingBox const &box)
static MCAPI ::Vec3 getSpan(::BoundingBox const &box)
static MCAPI ::BoundingBox expand(::BoundingBox const &box, ::BoundingBox const &other)
static MCAPI ::Scripting::ClassBinding bind()
static MCAPI bool intersects(::BoundingBox const &box, ::BoundingBox const &other)
static MCAPI ::Vec3 getCenter(::BoundingBox const &box)
static MCAPI ::BoundingBox dilate(::BoundingBox const &box, ::Vec3 const &size)
static MCAPI ::BoundingBox createValid(::Vec3 const &min, ::Vec3 max)
Definition Vec3.h:10