mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 22:18:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
124
brutal.jolt/Brutal.Jolt/Generated/Classes/Sphere.gen.cs
Normal file
124
brutal.jolt/Brutal.Jolt/Generated/Classes/Sphere.gen.cs
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
// <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/Sphere.h#L11">Jolt/Geometry/Sphere.h:11</see>
|
||||
/// <br/>
|
||||
/// <c>class Sphere</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly partial struct Sphere : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Sphere.h#L17">Jolt/Geometry/Sphere.h:17</see>
|
||||
/// <br/>
|
||||
/// <c>inline Sphere() = default</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Constructor
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public static Sphere Create() => Jolt.PInvoke.Sphere_Create();
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Sphere.h#L18">Jolt/Geometry/Sphere.h:18</see>
|
||||
/// <br/>
|
||||
/// <c>inline Sphere(const Float3 &inCenter, float inRadius)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static Sphere Create(float3 center, float radius) => Jolt.PInvoke.Sphere_Create_2(center, radius);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Sphere.h#L22">Jolt/Geometry/Sphere.h:22</see>
|
||||
/// <br/>
|
||||
/// <c>inline 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.Sphere_GetSupport(this, direction);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Sphere.h#L29">Jolt/Geometry/Sphere.h:29</see>
|
||||
/// <br/>
|
||||
/// <c>inline Vec3 GetCenter() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Properties
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public float3 GetCenter() => Jolt.PInvoke.Sphere_GetCenter(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Sphere.h#L30">Jolt/Geometry/Sphere.h:30</see>
|
||||
/// <br/>
|
||||
/// <c>inline float GetRadius() const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public float GetRadius() => Jolt.PInvoke.Sphere_GetRadius(this);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Sphere.h#L33">Jolt/Geometry/Sphere.h:33</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool Overlaps(const Sphere &inB) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Test if two spheres overlap
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool Overlaps(Sphere b) => Jolt.PInvoke.Sphere_Overlaps(this, b);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Sphere.h#L39">Jolt/Geometry/Sphere.h:39</see>
|
||||
/// <br/>
|
||||
/// <c>inline bool Overlaps(const AABox &inOther) const</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Check if this sphere overlaps with a box
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public bool Overlaps(AABox other) => Jolt.PInvoke.Sphere_Overlaps_2(this, other);
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Geometry/Sphere.h#L45">Jolt/Geometry/Sphere.h:45</see>
|
||||
/// <br/>
|
||||
/// <c>inline void EncapsulatePoint(Vec3Arg inPoint)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Create the minimal sphere that encapsulates this sphere and inPoint
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public void EncapsulatePoint(float3 point) => Jolt.PInvoke.Sphere_EncapsulatePoint(this, point);
|
||||
public void Dispose() => Jolt.PInvoke.Sphere_Destroy(this);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue