// // 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 { /// /// /// C++: /// Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:204 ///
/// inline bool AreAllAbove() const ///
///
/// /// /// Check if all points are above the surface. Should be used as early out. /// /// [LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_AreAllAbove")] public static partial Brutal.Bool8 PolyhedronSubmergedVolumeCalculator_AreAllAbove(PolyhedronSubmergedVolumeCalculator self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:210 ///
/// inline bool AreAllBelow() const ///
///
/// /// /// Check if all points are below the surface. Should be used as early out. /// /// [LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_AreAllBelow")] public static partial Brutal.Bool8 PolyhedronSubmergedVolumeCalculator_AreAllBelow(PolyhedronSubmergedVolumeCalculator self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:216 ///
/// inline int GetReferencePointIdx() const ///
///
/// /// /// Get the lowest point of the polyhedron. Used to form the 4th vertex to make a tetrahedron out of a /// polyhedron face. /// /// [LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_GetReferencePointIdx")] public static partial int PolyhedronSubmergedVolumeCalculator_GetReferencePointIdx(PolyhedronSubmergedVolumeCalculator self); /// /// /// C++: /// Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:222 ///
/// void AddFace(int inIdx1, int inIdx2, int inIdx3) ///
///
/// /// /// Add a polyhedron face. Supply the indices of the points that form the face (in counter clockwise /// order). /// /// [LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_AddFace")] public static partial void PolyhedronSubmergedVolumeCalculator_AddFace(PolyhedronSubmergedVolumeCalculator self, int idx1, int idx2, int idx3); /// /// /// C++: /// Jolt/Physics/Collision/Shape/PolyhedronSubmergedVolumeCalculator.h:292 ///
/// void GetResult(float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy) const ///
///
/// /// /// Call after all faces have been added. Returns the submerged volume and the center of buoyancy for /// the submerged volume. /// /// [LibraryImport("jolt", EntryPoint = "PolyhedronSubmergedVolumeCalculator_GetResult")] public static partial void PolyhedronSubmergedVolumeCalculator_GetResult(PolyhedronSubmergedVolumeCalculator self, out float submergedVolume, out float3 centerOfBuoyancy); } } }