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

127 lines
5.7 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
{
public static partial class Jolt
{
public static unsafe partial class PInvoke
{
/// <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>
[LibraryImport("jolt", EntryPoint = "Sphere_Create")]
public static partial Sphere 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 &amp;inCenter, float inRadius)</c>
/// </para>
/// </summary>
[LibraryImport("jolt", EntryPoint = "Sphere_Create_2")]
public static partial Sphere Sphere_Create_2(float3 center, float radius);
[LibraryImport("jolt", EntryPoint = "Sphere_Destroy")]
public static partial void Sphere_Destroy(Sphere self);
/// <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>
[LibraryImport("jolt", EntryPoint = "Sphere_GetSupport")]
public static partial float3 Sphere_GetSupport(Sphere self, float3 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>
[LibraryImport("jolt", EntryPoint = "Sphere_GetCenter")]
public static partial float3 Sphere_GetCenter(Sphere self);
/// <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>
[LibraryImport("jolt", EntryPoint = "Sphere_GetRadius")]
public static partial float Sphere_GetRadius(Sphere self);
/// <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 &amp;inB) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Test if two spheres overlap
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Sphere_Overlaps")]
public static partial Brutal.Bool8 Sphere_Overlaps(Sphere self, Sphere 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 &amp;inOther) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Check if this sphere overlaps with a box
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "Sphere_Overlaps_2")]
public static partial Brutal.Bool8 Sphere_Overlaps_2(Sphere self, AABox 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>
[LibraryImport("jolt", EntryPoint = "Sphere_EncapsulatePoint")]
public static partial void Sphere_EncapsulatePoint(Sphere self, float3 point);
}
}
}