nn::math::Hermite Function

Syntax

NN_FORCE_INLINE f32 Hermite(
     f32 v0,
     f32 t0,
     f32 v1,
     f32 t1,
     f32 p,
     f32  d
);

Arguments

Name Description
in v0 Value at point 1.
in t0 Slope at point 1.
in v1 Value at point 2.
in t1 Slope at point 2.
in p Distance from point 1 to the interpolation target position.
in d Distance between point 1 and point 2.

Return Values

Result of Hermite interpolation.

Description

Hermite interpolation calculation.


CONFIDENTIAL