LERP: Difference between revisions
Updated the page. TODO: update the explanation.
Nikitaivanov (talk | contribs) (Created page with "Linear Interpolation (LERP) returns a value between two others at a point of linear scale. Rotation = From + (To - From) × Amount File:LERP1.png Input: * From: The value to transition from. * To: The value to transition to. * Amount: How far to transition. Output: * Rotation: The value between the From and To input, at a linear scale (defined by Amount input). == Example == The most common use case is to smoothly transition from one rotation to another. Fil...") |
(Updated the page. TODO: update the explanation.) |
||
Line 1: | Line 1: | ||
Linear Interpolation (LERP) returns a | {{Block | ||
|image=LERP.png | |||
|type=s | |||
|folder=math | |||
|input1={{Port|r|From}} | |||
|input2={{Port|r|To}} | |||
|input3={{Port|n|Amount}} | |||
|output1={{Port|r}} | |||
}} | |||
Linear Interpolation (LERP) returns a rotation between From and To at a point of linear scale specified by the Amount. | |||
Rotation = From + (To - From) × Amount | <code>Rotation = From + (To - From) × Amount</code> | ||
[[ | See also: [[Linear Interpolation]] | ||
<!-- | |||
TODO: Move the entire sectiont to the Linear Interpolation script page | |||
== Example == | == Example == | ||
Line 24: | Line 28: | ||
[[File:Screenshot_2023_0708_202730.png]] | [[File:Screenshot_2023_0708_202730.png]] | ||
--> | |||
[[Category:Blocks]] | [[Category:Blocks]] |