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,93 @@
|
|||
// <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
|
||||
{
|
||||
/// <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>
|
||||
[LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_AreAllAbove")]
|
||||
public static partial Brutal.Bool8 PolyhedronSubmergedVolumeCalculator_AreAllAbove(PolyhedronSubmergedVolumeCalculator self);
|
||||
/// <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>
|
||||
[LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_AreAllBelow")]
|
||||
public static partial Brutal.Bool8 PolyhedronSubmergedVolumeCalculator_AreAllBelow(PolyhedronSubmergedVolumeCalculator self);
|
||||
/// <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>
|
||||
[LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_GetReferencePointIdx")]
|
||||
public static partial int PolyhedronSubmergedVolumeCalculator_GetReferencePointIdx(PolyhedronSubmergedVolumeCalculator self);
|
||||
/// <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>
|
||||
[LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_AddFace")]
|
||||
public static partial void PolyhedronSubmergedVolumeCalculator_AddFace(PolyhedronSubmergedVolumeCalculator self, int idx1, int idx2, int 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>
|
||||
[LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_GetResult")]
|
||||
public static partial void PolyhedronSubmergedVolumeCalculator_GetResult(PolyhedronSubmergedVolumeCalculator self, out float submergedVolume, out float3 centerOfBuoyancy);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue