brutal/brutal.jolt/Brutal.Jolt/Generated/Classes/Plane.gen.cs
2026-10-15 14:12:02 +13:00

156 lines
6.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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L10">Jolt/Geometry/Plane.h:10</see>
/// <br/>
/// <c>class Plane</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// An infinite plane described by the formula X . Normal + Constant = 0.
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct Plane : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L16">Jolt/Geometry/Plane.h:16</see>
/// <br/>
/// <c>Plane() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static Plane Create() => Jolt.PInvoke.Plane_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L17">Jolt/Geometry/Plane.h:17</see>
/// <br/>
/// <c>explicit Plane(Vec4Arg inNormalAndConstant)</c>
/// </para>
/// </summary>
public static Plane Create(float4 normalAndConstant) => Jolt.PInvoke.Plane_Create_2(normalAndConstant);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L18">Jolt/Geometry/Plane.h:18</see>
/// <br/>
/// <c>Plane(Vec3Arg inNormal, float inConstant)</c>
/// </para>
/// </summary>
public static Plane Create(float3 normal, float constant) => Jolt.PInvoke.Plane_Create_3(normal, constant);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L30">Jolt/Geometry/Plane.h:30</see>
/// <br/>
/// <c>Vec3 GetNormal() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Properties
/// </para>
/// </remarks>
public float3 GetNormal() => Jolt.PInvoke.Plane_GetNormal(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L31">Jolt/Geometry/Plane.h:31</see>
/// <br/>
/// <c>void SetNormal(Vec3Arg inNormal)</c>
/// </para>
/// </summary>
public void SetNormal(float3 normal) => Jolt.PInvoke.Plane_SetNormal(this, normal);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L32">Jolt/Geometry/Plane.h:32</see>
/// <br/>
/// <c>float GetConstant() const</c>
/// </para>
/// </summary>
public float GetConstant() => Jolt.PInvoke.Plane_GetConstant(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L33">Jolt/Geometry/Plane.h:33</see>
/// <br/>
/// <c>void SetConstant(float inConstant)</c>
/// </para>
/// </summary>
public void SetConstant(float constant) => Jolt.PInvoke.Plane_SetConstant(this, constant);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L36">Jolt/Geometry/Plane.h:36</see>
/// <br/>
/// <c>void StoreFloat4(Float4 *outV) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Store as 4 floats
/// </para>
/// </remarks>
public unsafe void StoreFloat4(Ptr<float4> v) => Jolt.PInvoke.Plane_StoreFloat4(this, v);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L57">Jolt/Geometry/Plane.h:57</see>
/// <br/>
/// <c>float SignedDistance(Vec3Arg inPoint) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Distance point to plane
/// </para>
/// </remarks>
public float SignedDistance(float3 point) => Jolt.PInvoke.Plane_SignedDistance(this, point);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L60">Jolt/Geometry/Plane.h:60</see>
/// <br/>
/// <c>Vec3 ProjectPointOnPlane(Vec3Arg inPoint) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Project inPoint onto the plane
/// </para>
/// </remarks>
public float3 ProjectPointOnPlane(float3 point) => Jolt.PInvoke.Plane_ProjectPointOnPlane(this, point);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Plane.h#L63">Jolt/Geometry/Plane.h:63</see>
/// <br/>
/// <c>static bool sIntersectPlanes(const Plane &amp;inP1, const Plane &amp;inP2, const Plane &amp;inP3, Vec3 &amp;outPoint)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Returns intersection point between 3 planes
/// </para>
/// </remarks>
public static bool sIntersectPlanes(Plane p1, Plane p2, Plane p3, out float3 point) => Jolt.PInvoke.Plane_sIntersectPlanes(p1, p2, p3, out point);
public void Dispose() => Jolt.PInvoke.Plane_Destroy(this);
}
}