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

141 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
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L17">Jolt/Geometry/OrientedBox.h:17</see>
/// <br/>
/// <c>class JPH_EXPORT_GCC_BUG_WORKAROUND OrientedBox</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Oriented box
/// </para>
/// </remarks>
[InteropHandle]
public readonly partial struct OrientedBox : IDisposable
{
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L23">Jolt/Geometry/OrientedBox.h:23</see>
/// <br/>
/// <c>OrientedBox() = default</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Constructor
/// </para>
/// </remarks>
public static OrientedBox Create() => Jolt.PInvoke.OrientedBox_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L24">Jolt/Geometry/OrientedBox.h:24</see>
/// <br/>
/// <c>OrientedBox(Mat44Arg inOrientation, Vec3Arg inHalfExtents)</c>
/// </para>
/// </summary>
public static OrientedBox Create(float4x4 orientation, float3 halfExtents) => Jolt.PInvoke.OrientedBox_Create_2(orientation, halfExtents);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L27">Jolt/Geometry/OrientedBox.h:27</see>
/// <br/>
/// <c>OrientedBox(Mat44Arg inOrientation, const AABox &amp;inBox)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Construct from axis aligned box and transform. Only works for rotation/translation matrix (no scaling /
/// shearing).
/// </para>
/// </remarks>
public static OrientedBox Create(float4x4 orientation, AABox box) => Jolt.PInvoke.OrientedBox_Create_3(orientation, box);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L30">Jolt/Geometry/OrientedBox.h:30</see>
/// <br/>
/// <c>bool Overlaps(const AABox &amp;inBox, float inEpsilon = 1.0e-6f) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Test if oriented box overlaps with axis aligned box each other
/// </para>
/// </remarks>
public bool Overlaps(AABox box, float epsilon) => Jolt.PInvoke.OrientedBox_Overlaps(this, box, epsilon);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L33">Jolt/Geometry/OrientedBox.h:33</see>
/// <br/>
/// <c>bool Overlaps(const OrientedBox &amp;inBox, float inEpsilon = 1.0e-6f) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Test if two oriented boxes overlap each other
/// </para>
/// </remarks>
public bool Overlaps(OrientedBox box, float epsilon) => Jolt.PInvoke.OrientedBox_Overlaps_2(this, box, epsilon);
/// <summary>
/// <para>
/// Transform that positions and rotates the local space axis aligned box into world space
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L35">Jolt/Geometry/OrientedBox.h:35</see>
/// <br/>
/// <c>Mat44 mOrientation</c>
/// </para>
/// </summary>
public float4x4 GetOrientation() => Jolt.PInvoke.OrientedBox_GetOrientation(this);
/// <summary>
/// <para>
/// Transform that positions and rotates the local space axis aligned box into world space
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L35">Jolt/Geometry/OrientedBox.h:35</see>
/// <br/>
/// <c>Mat44 mOrientation</c>
/// </para>
/// </summary>
public void SetOrientation(float4x4 value) => Jolt.PInvoke.OrientedBox_SetOrientation(this, value);
/// <summary>
/// <para>
/// Half extents (half the size of the edge) of the local space axis aligned box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L36">Jolt/Geometry/OrientedBox.h:36</see>
/// <br/>
/// <c>Vec3 mHalfExtents</c>
/// </para>
/// </summary>
public float3 GetHalfExtents() => Jolt.PInvoke.OrientedBox_GetHalfExtents(this);
/// <summary>
/// <para>
/// Half extents (half the size of the edge) of the local space axis aligned box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/OrientedBox.h#L36">Jolt/Geometry/OrientedBox.h:36</see>
/// <br/>
/// <c>Vec3 mHalfExtents</c>
/// </para>
/// </summary>
public void SetHalfExtents(float3 value) => Jolt.PInvoke.OrientedBox_SetHalfExtents(this, value);
public void Dispose() => Jolt.PInvoke.OrientedBox_Destroy(this);
}
}