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

158 lines
7.1 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
{
[LibraryImport("jolt", EntryPoint = "LinearCurve_Create")]
public static partial LinearCurve LinearCurve_Create();
[LibraryImport("jolt", EntryPoint = "LinearCurve_Destroy")]
public static partial void LinearCurve_Destroy(LinearCurve self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LinearCurve.h#L32">Jolt/Core/LinearCurve.h:32</see>
/// <br/>
/// <c>void Clear()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Remove all points
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "LinearCurve_Clear")]
public static partial void LinearCurve_Clear(LinearCurve self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LinearCurve.h#L35">Jolt/Core/LinearCurve.h:35</see>
/// <br/>
/// <c>void Reserve(uint inNumPoints)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Reserve memory for inNumPoints points
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "LinearCurve_Reserve")]
public static partial void LinearCurve_Reserve(LinearCurve self, uint numPoints);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LinearCurve.h#L40">Jolt/Core/LinearCurve.h:40</see>
/// <br/>
/// <c>void AddPoint(float inX, float inY)</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Add a point to the curve. Points must be inserted in ascending X or Sort() needs to be called when all points have been added.
/// @param inX X value
/// @param inY Y value
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "LinearCurve_AddPoint")]
public static partial void LinearCurve_AddPoint(LinearCurve self, float x, float y);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LinearCurve.h#L43">Jolt/Core/LinearCurve.h:43</see>
/// <br/>
/// <c>void Sort()</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Sort the points on X ascending
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "LinearCurve_Sort")]
public static partial void LinearCurve_Sort(LinearCurve self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LinearCurve.h#L46">Jolt/Core/LinearCurve.h:46</see>
/// <br/>
/// <c>float GetMinX() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the lowest X value
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "LinearCurve_GetMinX")]
public static partial float LinearCurve_GetMinX(LinearCurve self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LinearCurve.h#L49">Jolt/Core/LinearCurve.h:49</see>
/// <br/>
/// <c>float GetMaxX() const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Get the highest X value
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "LinearCurve_GetMaxX")]
public static partial float LinearCurve_GetMaxX(LinearCurve self);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LinearCurve.h#L54">Jolt/Core/LinearCurve.h:54</see>
/// <br/>
/// <c>float GetValue(float inX) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <code>
/// Sample value on the curve
/// @param inX X value to sample at
/// @return Interpolated Y value
/// </code>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "LinearCurve_GetValue")]
public static partial float LinearCurve_GetValue(LinearCurve self, float x);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LinearCurve.h#L57">Jolt/Core/LinearCurve.h:57</see>
/// <br/>
/// <c>void SaveBinaryState(StreamOut &amp;inStream) const</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Saves the state of this object in binary form to inStream.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "LinearCurve_SaveBinaryState")]
public static partial void LinearCurve_SaveBinaryState(LinearCurve self, StreamOut stream);
/// <summary>
/// <para>
/// C++:
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/23dadd0e603f1b321142d4c74df07fce85064989/Jolt/Core/LinearCurve.h#L60">Jolt/Core/LinearCurve.h:60</see>
/// <br/>
/// <c>void RestoreBinaryState(StreamIn &amp;inStream)</c>
/// </para>
/// </summary>
/// <remarks>
/// <para>
/// Restore the state of this object from inStream.
/// </para>
/// </remarks>
[LibraryImport("jolt", EntryPoint = "LinearCurve_RestoreBinaryState")]
public static partial void LinearCurve_RestoreBinaryState(LinearCurve self, StreamIn stream);
}
}
}