mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
114 lines
4.8 KiB
C#
114 lines
4.8 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
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L10">Jolt/Geometry/Triangle.h:10</see>
|
|
/// <br/>
|
|
/// <c>class Triangle</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// A simple triangle and its material
|
|
/// </para>
|
|
/// </remarks>
|
|
[InteropHandle]
|
|
public readonly partial struct Triangle : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L16">Jolt/Geometry/Triangle.h:16</see>
|
|
/// <br/>
|
|
/// <c>Triangle() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// </remarks>
|
|
public static Triangle Create() => Jolt.PInvoke.Triangle_Create();
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L17">Jolt/Geometry/Triangle.h:17</see>
|
|
/// <br/>
|
|
/// <c>Triangle(const Float3 &inV1, const Float3 &inV2, const Float3 &inV3, uint32 inMaterialIndex = 0, uint32 inUserData = 0)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static Triangle Create(float3 v1, float3 v2, float3 v3, uint materialIndex, uint userData) => Jolt.PInvoke.Triangle_Create_2(v1, v2, v3, materialIndex, userData);
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L21">Jolt/Geometry/Triangle.h:21</see>
|
|
/// <br/>
|
|
/// <c>Vec3 GetCentroid() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Get center of triangle
|
|
/// </para>
|
|
/// </remarks>
|
|
public float3 GetCentroid() => Jolt.PInvoke.Triangle_GetCentroid(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Follows mV[3] so that we can read mV as 4 vectors
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L28">Jolt/Geometry/Triangle.h:28</see>
|
|
/// <br/>
|
|
/// <c>uint32 mMaterialIndex = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetMaterialIndex() => Jolt.PInvoke.Triangle_GetMaterialIndex(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// Follows mV[3] so that we can read mV as 4 vectors
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L28">Jolt/Geometry/Triangle.h:28</see>
|
|
/// <br/>
|
|
/// <c>uint32 mMaterialIndex = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetMaterialIndex(uint value) => Jolt.PInvoke.Triangle_SetMaterialIndex(this, value);
|
|
/// <summary>
|
|
/// <para>
|
|
/// User data that can be used for anything by the application, e.g. for tracking the original index of the
|
|
/// triangle
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L29">Jolt/Geometry/Triangle.h:29</see>
|
|
/// <br/>
|
|
/// <c>uint32 mUserData = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public uint GetUserData() => Jolt.PInvoke.Triangle_GetUserData(this);
|
|
/// <summary>
|
|
/// <para>
|
|
/// User data that can be used for anything by the application, e.g. for tracking the original index of the
|
|
/// triangle
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Triangle.h#L29">Jolt/Geometry/Triangle.h:29</see>
|
|
/// <br/>
|
|
/// <c>uint32 mUserData = 0</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetUserData(uint value) => Jolt.PInvoke.Triangle_SetUserData(this, value);
|
|
public void Dispose() => Jolt.PInvoke.Triangle_Destroy(this);
|
|
}
|
|
}
|