ProtoFlux:Bezier Curve: Difference between revisions

From Resonite Wiki
Create Bezier Curve ProtoFlux Node Page
 
Cleaned up page. Added a description. Fixed input/output descriptions. Removed examples (those were not examples at all...). Standardized page.
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"From", "Type":"TangentPointFloat"},
{"Name":"From", "Type":"Dummy"},
{"Name":"To", "Type":"TangentPointFloat"},
{"Name":"To", "Type":"Dummy"},
{"Name":"Lerp", "Type":"float"}
{"Name":"Lerp", "Type":"float"}
]
]
Line 14: Line 14:
|}}
|}}


The '''Bezier Curve''' takes in 2 tangent points ([[Type:TangentPointFloat|TangentPointFloat]] or [[Type:TangentPointDouble|TangentPointDouble]]), and a lerp value to travel from start to finish. This returns the value of a specific point using that lerp value.


== Inputs ==
== Inputs ==


=== From ([[Type:TangentPointFloat|TangentPointFloat]] (Any tangent point type)) ===
=== From (Pseudo-Generic) ===


=== To ([[Type:TangentPointFloat|TangentPointFloat]] (Any tangent point type)) ===
The start point of this Bezier Curve.
 
=== To (Pseudo-Generic) ===
 
The end point of this Bezier Curve.


=== Lerp ([[Type:float|float]]) ===
=== Lerp ([[Type:float|float]]) ===
The travel point from start to finish.


== Outputs ==
== Outputs ==


=== * (Numeric) ===
=== * (Pseudo-Generic) ===
 
 
Examples: [[Type:Float3|float3]], [[Type:Float2|float2]], [[Type:Double3|double3]], [[Type:float|float]] etc.


== Examples ==
Returns the value of a specific point along the curve using the lerp value.


[[Category:ProtoFlux:Math:Interpolation]]
[[Category:ProtoFlux:Math:Interpolation]]

Revision as of 23:21, 1 July 2024

Bezier Curve
From
*
To
Lerp
Interpolation

The Bezier Curve takes in 2 tangent points (TangentPointFloat or TangentPointDouble), and a lerp value to travel from start to finish. This returns the value of a specific point using that lerp value.

Inputs

From (Pseudo-Generic)

The start point of this Bezier Curve.

To (Pseudo-Generic)

The end point of this Bezier Curve.

Lerp (float)

The travel point from start to finish.

Outputs

* (Pseudo-Generic)

Returns the value of a specific point along the curve using the lerp value.