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