From b05d941f4b105a93f942ee5f89570724c72c0268 Mon Sep 17 00:00:00 2001
From: JupiterRider <60042618+JupiterRider@users.noreply.github.com>
Date: Fri, 6 Dec 2024 22:13:17 +0100
Subject: [PATCH] Vector3CubicHermite added
---
Raylib-cs/interop/Raymath.cs | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Raylib-cs/interop/Raymath.cs b/Raylib-cs/interop/Raymath.cs
index 05026e3..c95aa65 100644
--- a/Raylib-cs/interop/Raymath.cs
+++ b/Raylib-cs/interop/Raymath.cs
@@ -292,6 +292,13 @@ public static unsafe partial class Raymath
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector3 Vector3Lerp(Vector3 v1, Vector3 v2, float amount);
+ ///
+ /// Calculate cubic hermite interpolation between two vectors and their tangents
+ /// as described in the GLTF 2.0 specification: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#interpolation-cubic
+ ///
+ [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
+ public static extern Vector3 Vector3CubicHermite(Vector3 v1, Vector3 tangent1, Vector3 v2, Vector3 tangent2, float amount);
+
/// Calculate reflected vector to normal
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector3 Vector3Reflect(Vector3 v, Vector3 normal);