// // 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 { [LibraryImport("jolt", EntryPoint = "MortonCode_Create")] public static partial MortonCode MortonCode_Create(); [LibraryImport("jolt", EntryPoint = "MortonCode_Destroy")] public static partial void MortonCode_Destroy(MortonCode self); /// /// /// C++: /// Jolt/Geometry/MortonCode.h:16 ///
/// static uint32 sExpandBits(float inV) ///
///
/// /// /// 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. /// /// [LibraryImport("jolt", EntryPoint = "MortonCode_sExpandBits")] public static partial uint MortonCode_sExpandBits(float v); /// /// /// C++: /// Jolt/Geometry/MortonCode.h:29 ///
/// static uint32 sGetMortonCode(Vec3Arg inVector, const AABox &inVectorBounds) ///
///
/// /// /// Calculate the morton code for inVector, given that all vectors lie in inVectorBounds /// /// [LibraryImport("jolt", EntryPoint = "MortonCode_sGetMortonCode")] public static partial uint MortonCode_sGetMortonCode(float3 vector, AABox vectorBounds); } } }