// // 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); /// /// /// C++: /// Jolt/Core/LinearCurve.h:32 ///
/// void Clear() ///
///
/// /// /// Remove all points /// /// [LibraryImport("jolt", EntryPoint = "LinearCurve_Clear")] public static partial void LinearCurve_Clear(LinearCurve self); /// /// /// C++: /// Jolt/Core/LinearCurve.h:35 ///
/// void Reserve(uint inNumPoints) ///
///
/// /// /// Reserve memory for inNumPoints points /// /// [LibraryImport("jolt", EntryPoint = "LinearCurve_Reserve")] public static partial void LinearCurve_Reserve(LinearCurve self, uint numPoints); /// /// /// C++: /// Jolt/Core/LinearCurve.h:40 ///
/// void AddPoint(float inX, float inY) ///
///
/// /// /// 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 /// /// [LibraryImport("jolt", EntryPoint = "LinearCurve_AddPoint")] public static partial void LinearCurve_AddPoint(LinearCurve self, float x, float y); /// /// /// C++: /// Jolt/Core/LinearCurve.h:43 ///
/// void Sort() ///
///
/// /// /// Sort the points on X ascending /// /// [LibraryImport("jolt", EntryPoint = "LinearCurve_Sort")] public static partial void LinearCurve_Sort(LinearCurve self); /// /// /// C++: /// Jolt/Core/LinearCurve.h:46 ///
/// float GetMinX() const ///
///
/// /// /// Get the lowest X value /// /// [LibraryImport("jolt", EntryPoint = "LinearCurve_GetMinX")] public static partial float LinearCurve_GetMinX(LinearCurve self); /// /// /// C++: /// Jolt/Core/LinearCurve.h:49 ///
/// float GetMaxX() const ///
///
/// /// /// Get the highest X value /// /// [LibraryImport("jolt", EntryPoint = "LinearCurve_GetMaxX")] public static partial float LinearCurve_GetMaxX(LinearCurve self); /// /// /// C++: /// Jolt/Core/LinearCurve.h:54 ///
/// float GetValue(float inX) const ///
///
/// /// /// Sample value on the curve /// @param inX X value to sample at /// @return Interpolated Y value /// /// [LibraryImport("jolt", EntryPoint = "LinearCurve_GetValue")] public static partial float LinearCurve_GetValue(LinearCurve self, float x); /// /// /// C++: /// Jolt/Core/LinearCurve.h:57 ///
/// void SaveBinaryState(StreamOut &inStream) const ///
///
/// /// /// Saves the state of this object in binary form to inStream. /// /// [LibraryImport("jolt", EntryPoint = "LinearCurve_SaveBinaryState")] public static partial void LinearCurve_SaveBinaryState(LinearCurve self, StreamOut stream); /// /// /// C++: /// Jolt/Core/LinearCurve.h:60 ///
/// void RestoreBinaryState(StreamIn &inStream) ///
///
/// /// /// Restore the state of this object from inStream. /// /// [LibraryImport("jolt", EntryPoint = "LinearCurve_RestoreBinaryState")] public static partial void LinearCurve_RestoreBinaryState(LinearCurve self, StreamIn stream); } } }