ProtoFlux:Bezier Curve: Difference between revisions

From Resonite Wiki
Create Bezier Curve ProtoFlux Node Page
 
Added a see also section.
 
(2 intermediate revisions by the same user not shown)
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.
{{Note|The types needed are found using the [[ProtoFlux:Pack To Tangent Point|Pack Tangent Point]] nodes.|information}}


== Inputs ==
== Inputs ==


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


=== To ([[Type:TangentPointFloat|TangentPointFloat]] (Any tangent point type)) ===
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) ===


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


Examples: [[Type:Float3|float3]], [[Type:Float2|float2]], [[Type:Double3|double3]], [[Type:float|float]] etc.
== See Also ==


== Examples ==
* Wikipedia's definition of a [https://en.wikipedia.org/wiki/B%C3%A9zier_curve bezier curve] & [https://en.wikipedia.org/wiki/Spline_interpolation spline interpolation].


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

Latest revision as of 15:18, 2 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.

The types needed are found using the Pack Tangent Point nodes.

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.

See Also