//
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
///
///
/// C++:
/// Jolt/Geometry/AABox.h:15
///
/// class AABox
///
///
///
///
/// Axis aligned box
///
///
[InteropHandle]
public readonly partial struct AABox : IDisposable
{
///
///
/// C++:
/// Jolt/Geometry/AABox.h:21
///
/// AABox()
///
///
///
///
/// Constructor
///
///
public static AABox Create() => Jolt.PInvoke.AABox_Create();
///
///
/// C++:
/// Jolt/Geometry/AABox.h:22
///
/// AABox(Vec3Arg inMin, Vec3Arg inMax)
///
///
public static AABox Create(float3 min, float3 max) => Jolt.PInvoke.AABox_Create_2(min, max);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:24
///
/// AABox(Vec3Arg inCenter, float inRadius)
///
///
public static AABox Create(float3 center, float radius) => Jolt.PInvoke.AABox_Create_3(center, radius);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:49
///
/// void SetEmpty()
///
///
///
///
/// Reset the bounding box to an empty bounding box
///
///
public void SetEmpty() => Jolt.PInvoke.AABox_SetEmpty(this);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:56
///
/// bool IsValid() const
///
///
///
///
/// Check if the bounding box is valid (max >= min)
///
///
public bool IsValid() => Jolt.PInvoke.AABox_IsValid(this);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:62
///
/// void Encapsulate(Vec3Arg inPos)
///
///
///
///
/// Encapsulate point in bounding box
///
///
public void Encapsulate(float3 pos) => Jolt.PInvoke.AABox_Encapsulate(this, pos);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:69
///
/// void Encapsulate(const AABox &inRHS)
///
///
///
///
/// Encapsulate bounding box in bounding box
///
///
public void Encapsulate(AABox rHS) => Jolt.PInvoke.AABox_Encapsulate_2(this, rHS);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:76
///
/// void Encapsulate(const Triangle &inRHS)
///
///
///
///
/// Encapsulate triangle in bounding box
///
///
public void Encapsulate(Triangle rHS) => Jolt.PInvoke.AABox_Encapsulate_3(this, rHS);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:100
///
/// void EnsureMinimalEdgeLength(float inMinEdgeLength)
///
///
///
///
/// Make sure that each edge of the bounding box has a minimal length
///
///
public void EnsureMinimalEdgeLength(float minEdgeLength) => Jolt.PInvoke.AABox_EnsureMinimalEdgeLength(this, minEdgeLength);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:107
///
/// void ExpandBy(Vec3Arg inVector)
///
///
///
///
/// Widen the box on both sides by inVector
///
///
public void ExpandBy(float3 vector) => Jolt.PInvoke.AABox_ExpandBy(this, vector);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:114
///
/// Vec3 GetCenter() const
///
///
///
///
/// Get center of bounding box
///
///
public float3 GetCenter() => Jolt.PInvoke.AABox_GetCenter(this);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:120
///
/// Vec3 GetExtent() const
///
///
///
///
/// Get extent of bounding box (half of the size)
///
///
public float3 GetExtent() => Jolt.PInvoke.AABox_GetExtent(this);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:126
///
/// Vec3 GetSize() const
///
///
///
///
/// Get size of bounding box
///
///
public float3 GetSize() => Jolt.PInvoke.AABox_GetSize(this);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:132
///
/// float GetSurfaceArea() const
///
///
///
///
/// Get surface area of bounding box
///
///
public float GetSurfaceArea() => Jolt.PInvoke.AABox_GetSurfaceArea(this);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:139
///
/// float GetVolume() const
///
///
///
///
/// Get volume of bounding box
///
///
public float GetVolume() => Jolt.PInvoke.AABox_GetVolume(this);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:146
///
/// bool Contains(const AABox &inOther) const
///
///
///
///
/// Check if this box contains another box
///
///
public bool Contains(AABox other) => Jolt.PInvoke.AABox_Contains(this, other);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:152
///
/// bool Contains(Vec3Arg inOther) const
///
///
///
///
/// Check if this box contains a point
///
///
public bool Contains(float3 other) => Jolt.PInvoke.AABox_Contains_2(this, other);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:164
///
/// bool Overlaps(const AABox &inOther) const
///
///
///
///
/// Check if this box overlaps with another box
///
///
public bool Overlaps(AABox other) => Jolt.PInvoke.AABox_Overlaps(this, other);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:170
///
/// bool Overlaps(const Plane &inPlane) const
///
///
///
///
/// Check if this box overlaps with a plane
///
///
public bool Overlaps(Plane plane) => Jolt.PInvoke.AABox_Overlaps_2(this, plane);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:179
///
/// void Translate(Vec3Arg inTranslation)
///
///
///
///
/// Translate bounding box
///
///
public void Translate(float3 translation) => Jolt.PInvoke.AABox_Translate(this, translation);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:230
///
/// Vec3 GetSupport(Vec3Arg inDirection) const
///
///
///
///
/// Calculate the support vector for this convex shape.
///
///
public float3 GetSupport(float3 direction) => Jolt.PInvoke.AABox_GetSupport(this, direction);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:297
///
/// Vec3 GetClosestPoint(Vec3Arg inPoint) const
///
///
///
///
/// Get the closest point on or in this box to inPoint
///
///
public float3 GetClosestPoint(float3 point) => Jolt.PInvoke.AABox_GetClosestPoint(this, point);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:303
///
/// inline float GetSqDistanceTo(Vec3Arg inPoint) const
///
///
///
///
/// Get the squared distance between inPoint and this box (will be 0 if in Point is inside the box)
///
///
public float GetSqDistanceTo(float3 point) => Jolt.PInvoke.AABox_GetSqDistanceTo(this, point);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:309
///
/// Vec3 mMin
///
///
///
///
/// Bounding box min and max
///
///
public float3 GetMin() => Jolt.PInvoke.AABox_GetMin(this);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:309
///
/// Vec3 mMin
///
///
///
///
/// Bounding box min and max
///
///
public void SetMin(float3 value) => Jolt.PInvoke.AABox_SetMin(this, value);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:310
///
/// Vec3 mMax
///
///
public float3 GetMax() => Jolt.PInvoke.AABox_GetMax(this);
///
///
/// C++:
/// Jolt/Geometry/AABox.h:310
///
/// Vec3 mMax
///
///
public void SetMax(float3 value) => Jolt.PInvoke.AABox_SetMax(this, value);
public void Dispose() => Jolt.PInvoke.AABox_Destroy(this);
}
}