brutal/Brutal.Jolt/Generated/Classes/Sphere.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

122 lines
4.8 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>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
/// Constructor
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/Sphere.h#L17">Jolt/Geometry/Sphere.h:17</see>
/// <br/>
/// <c>inline Sphere() = default</c>
/// </para>
/// </summary>
public static Sphere Create() => Jolt.PInvoke.Sphere_Create();
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/Sphere.h#L18">Jolt/Geometry/Sphere.h:18</see>
/// <br/>
/// <c>inline Sphere(const Float3 &amp;inCenter, float inRadius)</c>
/// </para>
/// </summary>
public static Sphere Create(float3 center, float radius) => Jolt.PInvoke.Sphere_Create_2(center, radius);
/// <summary>
/// <para>
/// Calculate the support vector for this convex shape.
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/Sphere.h#L22">Jolt/Geometry/Sphere.h:22</see>
/// <br/>
/// <c>inline Vec3 GetSupport(Vec3Arg inDirection) const</c>
/// </para>
/// </summary>
public float3 GetSupport(float3 direction) => Jolt.PInvoke.Sphere_GetSupport(this, direction);
/// <summary>
/// <para>
/// Properties
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/Sphere.h#L29">Jolt/Geometry/Sphere.h:29</see>
/// <br/>
/// <c>inline Vec3 GetCenter() const</c>
/// </para>
/// </summary>
public float3 GetCenter() => Jolt.PInvoke.Sphere_GetCenter(this);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
/// Test if two spheres overlap
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/Sphere.h#L33">Jolt/Geometry/Sphere.h:33</see>
/// <br/>
/// <c>inline bool Overlaps(const Sphere &amp;inB) const</c>
/// </para>
/// </summary>
public bool Overlaps(Sphere b) => Jolt.PInvoke.Sphere_Overlaps(this, b);
/// <summary>
/// <para>
/// Check if this sphere overlaps with a box
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/Sphere.h#L39">Jolt/Geometry/Sphere.h:39</see>
/// <br/>
/// <c>inline bool Overlaps(const AABox &amp;inOther) const</c>
/// </para>
/// </summary>
public bool Overlaps(in AABox other) => Jolt.PInvoke.Sphere_Overlaps_2(this, in other);
/// <summary>
/// <para>
/// Create the minimal sphere that encapsulates this sphere and inPoint
/// </para>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Geometry/Sphere.h#L45">Jolt/Geometry/Sphere.h:45</see>
/// <br/>
/// <c>inline void EncapsulatePoint(Vec3Arg inPoint)</c>
/// </para>
/// </summary>
public void EncapsulatePoint(float3 point) => Jolt.PInvoke.Sphere_EncapsulatePoint(this, point);
public void Dispose() => Jolt.PInvoke.Sphere_Destroy(this);
}
}