// // 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/Geometry/Triangle.h:16 ///
/// Triangle() = default ///
///
/// /// /// Constructor /// /// [LibraryImport("jolt", EntryPoint = "Triangle_Create")] public static partial Triangle Triangle_Create(); /// /// /// C++: /// Jolt/Geometry/Triangle.h:17 ///
/// Triangle(const Float3 &inV1, const Float3 &inV2, const Float3 &inV3, uint32 inMaterialIndex = 0, uint32 inUserData = 0) ///
///
[LibraryImport("jolt", EntryPoint = "Triangle_Create_2")] public static partial Triangle Triangle_Create_2(float3 v1, float3 v2, float3 v3, uint materialIndex, uint userData); [LibraryImport("jolt", EntryPoint = "Triangle_Destroy")] public static partial void Triangle_Destroy(Triangle self); /// /// /// C++: /// Jolt/Geometry/Triangle.h:21 ///
/// Vec3 GetCentroid() const ///
///
/// /// /// Get center of triangle /// /// [LibraryImport("jolt", EntryPoint = "Triangle_GetCentroid")] public static partial float3 Triangle_GetCentroid(Triangle self); /// /// /// Follows mV[3] so that we can read mV as 4 vectors /// /// /// C++: /// Jolt/Geometry/Triangle.h:28 ///
/// uint32 mMaterialIndex = 0 ///
///
[LibraryImport("jolt", EntryPoint = "Triangle_GetMaterialIndex")] public static partial uint Triangle_GetMaterialIndex(Triangle self); /// /// /// Follows mV[3] so that we can read mV as 4 vectors /// /// /// C++: /// Jolt/Geometry/Triangle.h:28 ///
/// uint32 mMaterialIndex = 0 ///
///
[LibraryImport("jolt", EntryPoint = "Triangle_SetMaterialIndex")] public static partial void Triangle_SetMaterialIndex(Triangle self, uint value); /// /// /// User data that can be used for anything by the application, e.g. for tracking the original index of /// the triangle /// /// /// C++: /// Jolt/Geometry/Triangle.h:29 ///
/// uint32 mUserData = 0 ///
///
[LibraryImport("jolt", EntryPoint = "Triangle_GetUserData")] public static partial uint Triangle_GetUserData(Triangle self); /// /// /// User data that can be used for anything by the application, e.g. for tracking the original index of /// the triangle /// /// /// C++: /// Jolt/Geometry/Triangle.h:29 ///
/// uint32 mUserData = 0 ///
///
[LibraryImport("jolt", EntryPoint = "Triangle_SetUserData")] public static partial void Triangle_SetUserData(Triangle self, uint value); } } }