Class CubicHermite
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
Evaluates cubic Hermite curves.
csharp
public static class CubicHermiteInheritance
object ← CubicHermite
Methods
GetPoint(Vector3, Vector3, Vector3, Vector3, float)
Gets the point at t along the curve.
csharp
public static Vector3 GetPoint(Vector3 point0, Vector3 tangent0, Vector3 point1, Vector3 tangent1, float t)Parameters
point0 Vector3
tangent0 Vector3
point1 Vector3
tangent1 Vector3
t float
Returns
GetPoint(float, float, float, float, float)
Gets the value at t along a scalar segment, tangents scaled by its width.
csharp
public static float GetPoint(float point0, float tangent0, float point1, float tangent1, float t)Parameters
point0 float
tangent0 float
point1 float
tangent1 float
t float
Returns
float
GetPointAndTangent(Vector3, Vector3, Vector3, Vector3, float)
The point and the (unnormalized) tangent at a parameter on the spline.
csharp
public static (Vector3 Point, Vector3 Tangent) GetPointAndTangent(Vector3 point0, Vector3 tangent0, Vector3 point1, Vector3 tangent1, float t)Parameters
point0 Vector3
tangent0 Vector3
point1 Vector3
tangent1 Vector3
t float
Returns
(Vector3 Point, Vector3 Tangent)
GetSplineLength(Vector3, Vector3, Vector3, Vector3)
The length of a spline segment, by Gauss-Legendre quadrature.
csharp
public static float GetSplineLength(Vector3 point0, Vector3 tangent0, Vector3 point1, Vector3 tangent1)Parameters
point0 Vector3
tangent0 Vector3
point1 Vector3
tangent1 Vector3
Returns
float

