mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 05:58:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
385
brutal.jolt/Brutal.Jolt/Generated/Classes/AABox.gen.cs
Normal file
385
brutal.jolt/Brutal.Jolt/Generated/Classes/AABox.gen.cs
Normal file
|
|
@ -0,0 +1,385 @@
|
|||
// <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/AABox.h#L15">Jolt/Geometry/AABox.h:15</see>
|
||||
/// <br/>
|
||||
/// <c>class AABox</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Axis aligned box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[InteropHandle]
|
||||
public readonly partial struct AABox : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L21">Jolt/Geometry/AABox.h:21</see>
|
||||
/// <br/>
|
||||
/// <c>AABox()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static AABox Create() => Jolt.PInvoke.AABox_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L22">Jolt/Geometry/AABox.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>AABox(Vec3Arg inMin, Vec3Arg inMax)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static AABox Create(float3 min, float3 max) => Jolt.PInvoke.AABox_Create_2(min, max);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L24">Jolt/Geometry/AABox.h:24</see>
|
||||
/// <br/>
|
||||
/// <c>AABox(Vec3Arg inCenter, float inRadius)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static AABox Create(float3 center, float radius) => Jolt.PInvoke.AABox_Create_3(center, radius);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L49">Jolt/Geometry/AABox.h:49</see>
|
||||
/// <br/>
|
||||
/// <c>void SetEmpty()</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Reset the bounding box to an empty bounding box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetEmpty() => Jolt.PInvoke.AABox_SetEmpty(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L56">Jolt/Geometry/AABox.h:56</see>
|
||||
/// <br/>
|
||||
/// <c>bool IsValid() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if the bounding box is valid (max >= min)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool IsValid() => Jolt.PInvoke.AABox_IsValid(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L62">Jolt/Geometry/AABox.h:62</see>
|
||||
/// <br/>
|
||||
/// <c>void Encapsulate(Vec3Arg inPos)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Encapsulate point in bounding box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void Encapsulate(float3 pos) => Jolt.PInvoke.AABox_Encapsulate(this, pos);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L69">Jolt/Geometry/AABox.h:69</see>
|
||||
/// <br/>
|
||||
/// <c>void Encapsulate(const AABox &inRHS)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Encapsulate bounding box in bounding box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void Encapsulate(AABox rHS) => Jolt.PInvoke.AABox_Encapsulate_2(this, rHS);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L76">Jolt/Geometry/AABox.h:76</see>
|
||||
/// <br/>
|
||||
/// <c>void Encapsulate(const Triangle &inRHS)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Encapsulate triangle in bounding box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void Encapsulate(Triangle rHS) => Jolt.PInvoke.AABox_Encapsulate_3(this, rHS);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L100">Jolt/Geometry/AABox.h:100</see>
|
||||
/// <br/>
|
||||
/// <c>void EnsureMinimalEdgeLength(float inMinEdgeLength)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Make sure that each edge of the bounding box has a minimal length
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void EnsureMinimalEdgeLength(float minEdgeLength) => Jolt.PInvoke.AABox_EnsureMinimalEdgeLength(this, minEdgeLength);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L107">Jolt/Geometry/AABox.h:107</see>
|
||||
/// <br/>
|
||||
/// <c>void ExpandBy(Vec3Arg inVector)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Widen the box on both sides by inVector
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void ExpandBy(float3 vector) => Jolt.PInvoke.AABox_ExpandBy(this, vector);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L114">Jolt/Geometry/AABox.h:114</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 GetCenter() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get center of bounding box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetCenter() => Jolt.PInvoke.AABox_GetCenter(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L120">Jolt/Geometry/AABox.h:120</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 GetExtent() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get extent of bounding box (half of the size)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetExtent() => Jolt.PInvoke.AABox_GetExtent(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L126">Jolt/Geometry/AABox.h:126</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 GetSize() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get size of bounding box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetSize() => Jolt.PInvoke.AABox_GetSize(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L132">Jolt/Geometry/AABox.h:132</see>
|
||||
/// <br/>
|
||||
/// <c>float GetSurfaceArea() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get surface area of bounding box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float GetSurfaceArea() => Jolt.PInvoke.AABox_GetSurfaceArea(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L139">Jolt/Geometry/AABox.h:139</see>
|
||||
/// <br/>
|
||||
/// <c>float GetVolume() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get volume of bounding box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float GetVolume() => Jolt.PInvoke.AABox_GetVolume(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L146">Jolt/Geometry/AABox.h:146</see>
|
||||
/// <br/>
|
||||
/// <c>bool Contains(const AABox &inOther) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if this box contains another box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool Contains(AABox other) => Jolt.PInvoke.AABox_Contains(this, other);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L152">Jolt/Geometry/AABox.h:152</see>
|
||||
/// <br/>
|
||||
/// <c>bool Contains(Vec3Arg inOther) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if this box contains a point
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool Contains(float3 other) => Jolt.PInvoke.AABox_Contains_2(this, other);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L164">Jolt/Geometry/AABox.h:164</see>
|
||||
/// <br/>
|
||||
/// <c>bool Overlaps(const AABox &inOther) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if this box overlaps with another box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool Overlaps(AABox other) => Jolt.PInvoke.AABox_Overlaps(this, other);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L170">Jolt/Geometry/AABox.h:170</see>
|
||||
/// <br/>
|
||||
/// <c>bool Overlaps(const Plane &inPlane) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if this box overlaps with a plane
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool Overlaps(Plane plane) => Jolt.PInvoke.AABox_Overlaps_2(this, plane);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L179">Jolt/Geometry/AABox.h:179</see>
|
||||
/// <br/>
|
||||
/// <c>void Translate(Vec3Arg inTranslation)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Translate bounding box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void Translate(float3 translation) => Jolt.PInvoke.AABox_Translate(this, translation);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L230">Jolt/Geometry/AABox.h:230</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 GetSupport(Vec3Arg inDirection) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Calculate the support vector for this convex shape.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetSupport(float3 direction) => Jolt.PInvoke.AABox_GetSupport(this, direction);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L297">Jolt/Geometry/AABox.h:297</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 GetClosestPoint(Vec3Arg inPoint) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get the closest point on or in this box to inPoint
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetClosestPoint(float3 point) => Jolt.PInvoke.AABox_GetClosestPoint(this, point);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L303">Jolt/Geometry/AABox.h:303</see>
|
||||
/// <br/>
|
||||
/// <c>inline float GetSqDistanceTo(Vec3Arg inPoint) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Get the squared distance between inPoint and this box (will be 0 if in Point is inside the box)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float GetSqDistanceTo(float3 point) => Jolt.PInvoke.AABox_GetSqDistanceTo(this, point);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L309">Jolt/Geometry/AABox.h:309</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mMin</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Bounding box min and max
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetMin() => Jolt.PInvoke.AABox_GetMin(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L309">Jolt/Geometry/AABox.h:309</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mMin</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Bounding box min and max
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void SetMin(float3 value) => Jolt.PInvoke.AABox_SetMin(this, value);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L310">Jolt/Geometry/AABox.h:310</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mMax</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float3 GetMax() => Jolt.PInvoke.AABox_GetMax(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/AABox.h#L310">Jolt/Geometry/AABox.h:310</see>
|
||||
/// <br/>
|
||||
/// <c>Vec3 mMax</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public void SetMax(float3 value) => Jolt.PInvoke.AABox_SetMax(this, value);
|
||||
public void Dispose() => Jolt.PInvoke.AABox_Destroy(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue