SOURCE DUMP v1

This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit fb20299e9d

View file

@ -0,0 +1,52 @@
// <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/Geometry/MortonCode.h#L11">Jolt/Geometry/MortonCode.h:11</see>
/// <br/>
/// <c>class MortonCode</c>
/// </para>
/// </summary>
[InteropHandle]
public readonly partial struct MortonCode : IDisposable
{
public static MortonCode Create() => Jolt.PInvoke.MortonCode_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/MortonCode.h#L16">Jolt/Geometry/MortonCode.h:16</see>
/// <br/>
/// <c>static uint32 sExpandBits(float inV)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// First converts a floating point value in the range [0, 1] to a 10 bit fixed point integer.
/// Then expands a 10-bit integer into 30 bits by inserting 2 zeros after each bit.
/// </code>
/// </remarks>
public static uint sExpandBits(float v) => Jolt.PInvoke.MortonCode_sExpandBits(v);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/MortonCode.h#L29">Jolt/Geometry/MortonCode.h:29</see>
/// <br/>
/// <c>static uint32 sGetMortonCode(Vec3Arg inVector, const AABox &amp;inVectorBounds)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Calculate the morton code for inVector, given that all vectors lie in inVectorBounds
/// </para>
/// </remarks>
public static uint sGetMortonCode(float3 vector, AABox vectorBounds) => Jolt.PInvoke.MortonCode_sGetMortonCode(vector, vectorBounds);
public void Dispose() => Jolt.PInvoke.MortonCode_Destroy(this);
}
}