mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
161 lines
6.2 KiB
C#
161 lines
6.2 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>
|
|
/// A set of points (x, y) that form a linear curve
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/LinearCurve.h#L16">Jolt/Core/LinearCurve.h:16</see>
|
|
/// <br/>
|
|
/// <c>class LinearCurve</c>
|
|
/// </para>
|
|
/// </summary>
|
|
[InteropHandle]
|
|
public readonly partial struct LinearCurve : IDisposable
|
|
{
|
|
public static LinearCurve Create() => Jolt.PInvoke.LinearCurve_Create();
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Remove all points
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/LinearCurve.h#L32">Jolt/Core/LinearCurve.h:32</see>
|
|
/// <br/>
|
|
/// <c>void Clear()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void Clear() => Jolt.PInvoke.LinearCurve_Clear(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Reserve memory for inNumPoints points
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/LinearCurve.h#L35">Jolt/Core/LinearCurve.h:35</see>
|
|
/// <br/>
|
|
/// <c>void Reserve(uint inNumPoints)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void Reserve(uint numPoints) => Jolt.PInvoke.LinearCurve_Reserve(this, numPoints);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
|
public void AddPoint(float x, float y) => Jolt.PInvoke.LinearCurve_AddPoint(this, x, y);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Sort the points on X ascending
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/LinearCurve.h#L43">Jolt/Core/LinearCurve.h:43</see>
|
|
/// <br/>
|
|
/// <c>void Sort()</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void Sort() => Jolt.PInvoke.LinearCurve_Sort(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get the lowest X value
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/LinearCurve.h#L46">Jolt/Core/LinearCurve.h:46</see>
|
|
/// <br/>
|
|
/// <c>float GetMinX() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMinX() => Jolt.PInvoke.LinearCurve_GetMinX(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Get the highest X value
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/LinearCurve.h#L49">Jolt/Core/LinearCurve.h:49</see>
|
|
/// <br/>
|
|
/// <c>float GetMaxX() const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public float GetMaxX() => Jolt.PInvoke.LinearCurve_GetMaxX(this);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Sample value on the curve
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/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>
|
|
public float GetValue(float x) => Jolt.PInvoke.LinearCurve_GetValue(this, x);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Saves the state of this object in binary form to inStream.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/LinearCurve.h#L57">Jolt/Core/LinearCurve.h:57</see>
|
|
/// <br/>
|
|
/// <c>void SaveBinaryState(StreamOut &inStream) const</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void SaveBinaryState(StreamOut stream) => Jolt.PInvoke.LinearCurve_SaveBinaryState(this, stream);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Restore the state of this object from inStream.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/jrouwe/JoltPhysics/blob/e77f175595e64cb44218cc9d9d56fc365ad0e36a/Jolt/Core/LinearCurve.h#L60">Jolt/Core/LinearCurve.h:60</see>
|
|
/// <br/>
|
|
/// <c>void RestoreBinaryState(StreamIn &inStream)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
public void RestoreBinaryState(StreamIn stream) => Jolt.PInvoke.LinearCurve_RestoreBinaryState(this, stream);
|
|
|
|
public void Dispose() => Jolt.PInvoke.LinearCurve_Destroy(this);
|
|
}
|
|
}
|