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

97 lines
4.8 KiB
C#

// <auto-generated/>
// Generated by Brutal.Jolt.Generate; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
using Brutal.Interop;
using Brutal.Numerics;
namespace Brutal.JoltApi
{
/// <summary>
/// <para>
/// This class calculates the intersection between a fluid surface and a polyhedron and returns the submerged
/// volume and its center of buoyancy Construct this class and then one by one add all faces of the polyhedron
/// using the AddFace function. After all faces have been added the result can be gotten through GetResult.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L17">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:17</see>
/// <br/>
/// <c>class PolyhedronSubmergedVolumeCalculator</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct PolyhedronSubmergedVolumeCalculator
{
/// <summary>
/// <para>
/// Check if all points are above the surface. Should be used as early out.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L204">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:204</see>
/// <br/>
/// <c>inline bool AreAllAbove() const</c>
/// </para>
/// </summary>
public bool AreAllAbove() => Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_AreAllAbove(this);
/// <summary>
/// <para>
/// Check if all points are below the surface. Should be used as early out.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L210">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:210</see>
/// <br/>
/// <c>inline bool AreAllBelow() const</c>
/// </para>
/// </summary>
public bool AreAllBelow() => Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_AreAllBelow(this);
/// <summary>
/// <para>
/// Get the lowest point of the polyhedron. Used to form the 4th vertex to make a tetrahedron out of a
/// polyhedron face.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L216">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:216</see>
/// <br/>
/// <c>inline int GetReferencePointIdx() const</c>
/// </para>
/// </summary>
public int GetReferencePointIdx() =>
Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_GetReferencePointIdx(this);
/// <summary>
/// <para>
/// Add a polyhedron face. Supply the indices of the points that form the face (in counter clockwise order).
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L222">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:222</see>
/// <br/>
/// <c>void AddFace(int inIdx1, int inIdx2, int inIdx3)</c>
/// </para>
/// </summary>
public void AddFace(int idx1, int idx2, int idx3) =>
Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_AddFace(this, idx1, idx2, idx3);
/// <summary>
/// <para>
/// Call after all faces have been added. Returns the submerged volume and the center of buoyancy for the
/// submerged volume.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L292">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:292</see>
/// <br/>
/// <c>void GetResult(float &amp;outSubmergedVolume, Vec3 &amp;outCenterOfBuoyancy) const</c>
/// </para>
/// </summary>
public void GetResult(out float submergedVolume, out float3 centerOfBuoyancy) =>
Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_GetResult(this, out submergedVolume, out centerOfBuoyancy);
}
}