Cubic Lerp (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
Other languages:
English • ‎日本語
Cubic Lerp
'Cubic Lerp' LogiX node
Inputs
  Float From
  Float From Tangent
  Float To
  Float To Tangent
  Float Lerp
Outputs
  Float *

The Cubic Lerp node outputs the value that is interpolated between From and To with the Lerp input mapped to a spline curve which can be contorted by paired tangent inputs (From Tangent and To Tangent). This results in a much more customizable interpolation than any other current interpolation method in LogiX, with the added work of having to define tangents.

Usage

When spawned from the node browser, this node accepts float data by default. However, this node can be overloaded to accept a wide variety of numeric datatypes if an appropriate wire is connected to the input. The datatype must support decimal places due to the nature of the function. This node does not officially support FloatQ datatype. Attempting to interpolate a FloatQ by first converting it to an Euler angle may yield unexpected results.

Each input point defined has an associated tangent, this tangent is used to define the 'velocity' at that point. This means that if you were interpolating from point A to point B the instantaneous velocity of a point at A (The start of the interpolation) would perfectly match the tangent input associated with A and would end up matching the associated tangent of B once it reaches it.

Examples

Node Menu

Math
Back Binary Constants DateTime Enums Matrix Physics
Quantity Random Rect Rotation Shaping TimeSpan Abs
Acos Asin Atan Atan2 Avg Ceil Ceil To Int
Clamp Clamp01 Constant Lerp Constant Slerp Cos Cosine Lerp Cubic Lerp
Exp Floor Floor To Int Greatest Common Divisor Inverse Lerp Is Between Least Common Multiple
Lerp Log Log N Log10 Max Min Multi Lerp
Multi Slerp Nth Root Ping Pong Pow Remap Remap -1..1 to 0..1 Repeat
Repeat01 Round Round To Int Sigmoid Sign Simplex Noise Sin
Slerp Smooth Lerp Sqrt Tan