mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
137 lines
6.2 KiB
C#
137 lines
6.2 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="IndexedTriangleNoMaterial.Create()"/>
|
|
[LibraryImport("jolt", EntryPoint = "IndexedTriangleNoMaterial_Create")]
|
|
public static partial void IndexedTriangleNoMaterial_Create(out IndexedTriangleNoMaterial outResult);
|
|
|
|
/// <inheritdoc cref="IndexedTriangleNoMaterial.Create(uint, uint, uint)"/>
|
|
[LibraryImport("jolt", EntryPoint = "IndexedTriangleNoMaterial_Create_2")]
|
|
public static partial void IndexedTriangleNoMaterial_Create_2(
|
|
uint i1,
|
|
uint i2,
|
|
uint i3,
|
|
out IndexedTriangleNoMaterial outResult
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Check if two triangles are equivalent (using the same vertices)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L28">Jolt/Geometry/IndexedTriangle.h:28</see>
|
|
/// <br/>
|
|
/// <c>bool IsEquivalent(const IndexedTriangleNoMaterial &inRHS) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "IndexedTriangleNoMaterial_IsEquivalent")]
|
|
public static partial Brutal.Bool8 IndexedTriangleNoMaterial_IsEquivalent(
|
|
ref IndexedTriangleNoMaterial self,
|
|
in IndexedTriangleNoMaterial rhs
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Check if two triangles are opposite (using the same vertices but in opposing order)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L36">Jolt/Geometry/IndexedTriangle.h:36</see>
|
|
/// <br/>
|
|
/// <c>bool IsOpposite(const IndexedTriangleNoMaterial &inRHS) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "IndexedTriangleNoMaterial_IsOpposite")]
|
|
public static partial Brutal.Bool8 IndexedTriangleNoMaterial_IsOpposite(
|
|
ref IndexedTriangleNoMaterial self,
|
|
in IndexedTriangleNoMaterial rhs
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Check if triangle is degenerate
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L44">Jolt/Geometry/IndexedTriangle.h:44</see>
|
|
/// <br/>
|
|
/// <c>bool IsDegenerate(const VertexList &inVertices) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// vertices is copied into a native container for the call; the span is only read.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "IndexedTriangleNoMaterial_IsDegenerate")]
|
|
public static partial Brutal.Bool8 IndexedTriangleNoMaterial_IsDegenerate(
|
|
ref IndexedTriangleNoMaterial self,
|
|
float3* vertices,
|
|
nuint verticesCount
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Rotate the vertices so that the second vertex becomes first etc. This does not change the
|
|
/// represented triangle.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L54">Jolt/Geometry/IndexedTriangle.h:54</see>
|
|
/// <br/>
|
|
/// <c>void Rotate()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "IndexedTriangleNoMaterial_Rotate")]
|
|
public static partial void IndexedTriangleNoMaterial_Rotate(ref IndexedTriangleNoMaterial self);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get center of triangle
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L63">Jolt/Geometry/IndexedTriangle.h:63</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetCentroid(const VertexList &inVertices) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// vertices is copied into a native container for the call; the span is only read.
|
|
/// </para>
|
|
/// </remarks>
|
|
[LibraryImport("jolt", EntryPoint = "IndexedTriangleNoMaterial_GetCentroid")]
|
|
public static partial float3 IndexedTriangleNoMaterial_GetCentroid(
|
|
ref IndexedTriangleNoMaterial self,
|
|
float3* vertices,
|
|
nuint verticesCount
|
|
);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get the hash value of this structure
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/IndexedTriangle.h#L69">Jolt/Geometry/IndexedTriangle.h:69</see>
|
|
/// <br/>
|
|
/// <c>uint64 GetHash() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[LibraryImport("jolt", EntryPoint = "IndexedTriangleNoMaterial_GetHash")]
|
|
public static partial ulong IndexedTriangleNoMaterial_GetHash(ref IndexedTriangleNoMaterial self);
|
|
}
|
|
}
|
|
}
|