//
// 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
{
///
[LibraryImport("jolt", EntryPoint = "AABox_Create")]
public static partial AABox AABox_Create();
///
[LibraryImport("jolt", EntryPoint = "AABox_Create_2")]
public static partial AABox AABox_Create_2(float3 min, float3 max);
///
[LibraryImport("jolt", EntryPoint = "AABox_Create_3")]
public static partial AABox AABox_Create_3(double3 min, double3 max);
///
[LibraryImport("jolt", EntryPoint = "AABox_Create_4")]
public static partial AABox AABox_Create_4(float3 center, float radius);
///
[LibraryImport("jolt", EntryPoint = "AABox_FromTwoPoints")]
public static partial AABox AABox_FromTwoPoints(float3 p1, float3 p2);
///
[LibraryImport("jolt", EntryPoint = "AABox_FromTriangle")]
public static partial AABox AABox_FromTriangle(
float3* vertices,
nuint verticesCount,
in IndexedTriangle triangle
);
///
[LibraryImport("jolt", EntryPoint = "AABox_Biggest")]
public static partial AABox AABox_Biggest();
///
///
/// Reset the bounding box to an empty bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:49
///
/// void SetEmpty()
///
///
[LibraryImport("jolt", EntryPoint = "AABox_SetEmpty")]
public static partial void AABox_SetEmpty(ref AABox self);
///
///
/// Check if the bounding box is valid (max >= min)
///
///
/// C++:
/// Jolt/Geometry/AABox.h:56
///
/// bool IsValid() const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_IsValid")]
public static partial Brutal.Bool8 AABox_IsValid(ref AABox self);
///
///
/// Encapsulate triangle in bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:87
///
/// void Encapsulate(const VertexList &inVertices, const IndexedTriangle &inTriangle)
///
///
///
///
/// vertices is copied into a native container for the call; the span is only read.
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate")]
public static partial void AABox_Encapsulate(
ref AABox self,
float3* vertices,
nuint verticesCount,
in IndexedTriangle triangle
);
///
///
/// Encapsulate point in bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:62
///
/// void Encapsulate(Vec3Arg inPos)
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate_2")]
public static partial void AABox_Encapsulate_2(ref AABox self, float3 pos);
///
///
/// Encapsulate bounding box in bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:69
///
/// void Encapsulate(const AABox &inRHS)
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate_3")]
public static partial void AABox_Encapsulate_3(ref AABox self, in AABox rhs);
///
///
/// Encapsulate triangle in bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:76
///
/// void Encapsulate(const Triangle &inRHS)
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Encapsulate_4")]
public static partial void AABox_Encapsulate_4(ref AABox self, in Triangle rhs);
///
///
/// Intersect this bounding box with inOther, returns the intersection
///
///
/// C++:
/// Jolt/Geometry/AABox.h:94
///
/// AABox Intersect(const AABox &inOther) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Intersect")]
public static partial AABox AABox_Intersect(ref AABox self, in AABox other);
///
///
/// Make sure that each edge of the bounding box has a minimal length
///
///
/// C++:
/// Jolt/Geometry/AABox.h:100
///
/// void EnsureMinimalEdgeLength(float inMinEdgeLength)
///
///
[LibraryImport("jolt", EntryPoint = "AABox_EnsureMinimalEdgeLength")]
public static partial void AABox_EnsureMinimalEdgeLength(ref AABox self, float minEdgeLength);
///
///
/// Widen the box on both sides by inVector
///
///
/// C++:
/// Jolt/Geometry/AABox.h:107
///
/// void ExpandBy(Vec3Arg inVector)
///
///
[LibraryImport("jolt", EntryPoint = "AABox_ExpandBy")]
public static partial void AABox_ExpandBy(ref AABox self, float3 vector);
///
///
/// Get center of bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:114
///
/// Vec3 GetCenter() const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_GetCenter")]
public static partial float3 AABox_GetCenter(ref AABox self);
///
///
/// Get extent of bounding box (half of the size)
///
///
/// C++:
/// Jolt/Geometry/AABox.h:120
///
/// Vec3 GetExtent() const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_GetExtent")]
public static partial float3 AABox_GetExtent(ref AABox self);
///
///
/// Get size of bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:126
///
/// Vec3 GetSize() const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_GetSize")]
public static partial float3 AABox_GetSize(ref AABox self);
///
///
/// Get surface area of bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:132
///
/// float GetSurfaceArea() const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_GetSurfaceArea")]
public static partial float AABox_GetSurfaceArea(ref AABox self);
///
///
/// Get volume of bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:139
///
/// float GetVolume() const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_GetVolume")]
public static partial float AABox_GetVolume(ref AABox self);
///
///
/// Check if this box contains another box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:146
///
/// bool Contains(const AABox &inOther) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Contains")]
public static partial Brutal.Bool8 AABox_Contains(ref AABox self, in AABox other);
///
///
/// Check if this box contains a point
///
///
/// C++:
/// Jolt/Geometry/AABox.h:152
///
/// bool Contains(Vec3Arg inOther) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Contains_2")]
public static partial Brutal.Bool8 AABox_Contains_2(ref AABox self, float3 other);
///
///
/// Check if this box contains a point
///
///
/// C++:
/// Jolt/Geometry/AABox.h:158
///
/// bool Contains(DVec3Arg inOther) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Contains_3")]
public static partial Brutal.Bool8 AABox_Contains_3(ref AABox self, double3 other);
///
///
/// Check if this box overlaps with another box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:164
///
/// bool Overlaps(const AABox &inOther) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Overlaps")]
public static partial Brutal.Bool8 AABox_Overlaps(ref AABox self, in AABox other);
///
///
/// Check if this box overlaps with a plane
///
///
/// C++:
/// Jolt/Geometry/AABox.h:170
///
/// bool Overlaps(const Plane &inPlane) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Overlaps_2")]
public static partial Brutal.Bool8 AABox_Overlaps_2(ref AABox self, in Plane plane);
///
///
/// Translate bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:179
///
/// void Translate(Vec3Arg inTranslation)
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Translate")]
public static partial void AABox_Translate(ref AABox self, float3 translation);
///
///
/// Translate bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:186
///
/// void Translate(DVec3Arg inTranslation)
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Translate_2")]
public static partial void AABox_Translate_2(ref AABox self, double3 translation);
///
///
/// Transform bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:193
///
/// AABox Transformed(Mat44Arg inMatrix) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Transformed")]
public static partial AABox AABox_Transformed(ref AABox self, in float4x4 matrix);
///
///
/// Transform bounding box
///
///
/// C++:
/// Jolt/Geometry/AABox.h:216
///
/// AABox Transformed(DMat44Arg inMatrix) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Transformed_2")]
public static partial AABox AABox_Transformed_2(ref AABox self, in double4x4 matrix);
///
///
/// Scale this bounding box, can handle non-uniform and negative scaling
///
///
/// C++:
/// Jolt/Geometry/AABox.h:224
///
/// AABox Scaled(Vec3Arg inScale) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_Scaled")]
public static partial AABox AABox_Scaled(ref AABox self, float3 scale);
///
///
/// Calculate the support vector for this convex shape.
///
///
/// C++:
/// Jolt/Geometry/AABox.h:230
///
/// Vec3 GetSupport(Vec3Arg inDirection) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_GetSupport")]
public static partial float3 AABox_GetSupport(ref AABox self, float3 direction);
///
///
/// Get the closest point on or in this box to inPoint
///
///
/// C++:
/// Jolt/Geometry/AABox.h:297
///
/// Vec3 GetClosestPoint(Vec3Arg inPoint) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_GetClosestPoint")]
public static partial float3 AABox_GetClosestPoint(ref AABox self, float3 point);
///
///
/// Get the squared distance between inPoint and this box (will be 0 if in Point is inside the box)
///
///
/// C++:
/// Jolt/Geometry/AABox.h:303
///
/// inline float GetSqDistanceTo(Vec3Arg inPoint) const
///
///
[LibraryImport("jolt", EntryPoint = "AABox_GetSqDistanceTo")]
public static partial float AABox_GetSqDistanceTo(ref AABox self, float3 point);
}
}
}