brutal/Brutal.Jolt/Generated/PInvoke/AABox.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

435 lines
20 KiB
C#

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