mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
146 lines
6.2 KiB
C#
146 lines
6.2 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Jolt.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
using Brutal.Interop;
|
|
using Brutal.Numerics;
|
|
|
|
namespace Brutal.JoltApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Oriented box
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/OrientedBox.h#L17">Jolt/Geometry/OrientedBox.h:17</see>
|
|
/// <br/>
|
|
/// <c>class JPH_EXPORT_GCC_BUG_WORKAROUND OrientedBox</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct OrientedBox : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Constructor
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/OrientedBox.h#L23">Jolt/Geometry/OrientedBox.h:23</see>
|
|
/// <br/>
|
|
/// <c>OrientedBox() = default</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static OrientedBox Create() => Jolt.PInvoke.OrientedBox_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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(in float4x4 orientation, float3 halfExtents) =>
|
|
Jolt.PInvoke.OrientedBox_Create_2(in orientation, halfExtents);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Construct from axis aligned box and transform. Only works for rotation/translation matrix (no scaling /
|
|
/// shearing).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/OrientedBox.h#L27">Jolt/Geometry/OrientedBox.h:27</see>
|
|
/// <br/>
|
|
/// <c>OrientedBox(Mat44Arg inOrientation, const AABox &inBox)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public static OrientedBox Create(in float4x4 orientation, in AABox box) =>
|
|
Jolt.PInvoke.OrientedBox_Create_3(in orientation, in box);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Test if oriented box overlaps with axis aligned box each other
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/OrientedBox.h#L30">Jolt/Geometry/OrientedBox.h:30</see>
|
|
/// <br/>
|
|
/// <c>bool Overlaps(const AABox &inBox, float inEpsilon = 1.0e-6f) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool Overlaps(in AABox box, float epsilon = 1E-06f) =>
|
|
Jolt.PInvoke.OrientedBox_Overlaps(this, in box, epsilon);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Test if two oriented boxes overlap each other
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/OrientedBox.h#L33">Jolt/Geometry/OrientedBox.h:33</see>
|
|
/// <br/>
|
|
/// <c>bool Overlaps(const OrientedBox &inBox, float inEpsilon = 1.0e-6f) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public bool Overlaps(OrientedBox box, float epsilon = 1E-06f) =>
|
|
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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/OrientedBox.h#L35">Jolt/Geometry/OrientedBox.h:35</see>
|
|
/// <br/>
|
|
/// <c>Mat44 mOrientation</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SetOrientation(in float4x4 value) => Jolt.PInvoke.OrientedBox_SetOrientation(this, in 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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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);
|
|
}
|
|
}
|