mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,100 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using Brutal.Interop;
|
||||
using Brutal.Numerics;
|
||||
namespace Brutal.JoltApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L17">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:17</see>
|
||||
/// <br/>
|
||||
/// <c>class PolyhedronSubmergedVolumeCalculator</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// 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.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct PolyhedronSubmergedVolumeCalculator
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L204">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:204</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool AreAllAbove() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if all points are above the surface. Should be used as early out.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool AreAllAbove() => Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_AreAllAbove(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L210">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:210</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool AreAllBelow() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if all points are below the surface. Should be used as early out.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool AreAllBelow() => Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_AreAllBelow(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L216">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:216</see>
|
||||
/// <br/>
|
||||
/// <c>inline int GetReferencePointIdx() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get the lowest point of the polyhedron. Used to form the 4th vertex to make a tetrahedron out of a
|
||||
/// polyhedron face.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public int GetReferencePointIdx() => Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_GetReferencePointIdx(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/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>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Add a polyhedron face. Supply the indices of the points that form the face (in counter clockwise order).
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void AddFace(int idx1, int idx2, int idx3) => Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_AddFace(this, idx1, idx2, idx3);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h#L292">Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:292</see>
|
||||
/// <br/>
|
||||
/// <c>void GetResult(float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Call after all faces have been added. Returns the submerged volume and the center of buoyancy for the
|
||||
/// submerged volume.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void GetResult(out float submergedVolume, out float3 centerOfBuoyancy) => Jolt.PInvoke.PolyhedronSubmergedVolumeCalculator_GetResult(this, out submergedVolume, out centerOfBuoyancy);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue