mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
// <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
|
|
{
|
|
/// <inheritdoc cref="Triangle.Create()"/>
|
|
[LibraryImport("jolt", EntryPoint = "Triangle_Create")]
|
|
public static partial void Triangle_Create(out Triangle outResult);
|
|
|
|
/// <inheritdoc cref="Triangle.Create(float3, float3, float3, uint, uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "Triangle_Create_2")]
|
|
public static partial void Triangle_Create_2(
|
|
float3 v1,
|
|
float3 v2,
|
|
float3 v3,
|
|
uint materialIndex,
|
|
uint userData,
|
|
out Triangle outResult
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get center of triangle
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/Triangle.h#L21">Jolt/Geometry/Triangle.h:21</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetCentroid() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "Triangle_GetCentroid")]
|
|
public static partial float3 Triangle_GetCentroid(ref Triangle self);
|
|
}
|
|
}
|
|
}
|