ProtoFlux:Pi: Difference between revisions

From Resonite Wiki
Remove empty inputs and other small edits
Added suggestion note.
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
|Outputs=
|Outputs=
[
[
{"Name":"", "Type":"float"}
{"Name":"*", "Type":"float"}
]
]
|}}
|}}


The '''Pi''' node outputs the mathematical constant [https://en.wikipedia.org/wiki/Pi π].
The '''Pi''' node outputs the mathematical constant [https://en.wikipedia.org/wiki/Pi π].
Applications this can be used in:
* Geometry and Circle Calculations
* Rotations and Angle Calculations
* Wave Generation (combined with [[ProtoFlux:Sin|Sin]])
* Physics Simulations (especially when dealing with circular motion, pendulum movements, or orbital mechanics)
* Procedural Generation (especially curves)
* Lighting and Shading (used in lighting models to calculate angles and intensities of light, reflections, and refractions)
* Animation Curves
{{Note|If you need to use 2PI for calculations, instead of using the [[ProtoFlux:Mul|Mul]] or [[ProtoFlux:Add|Add]] nodes, you can use the [[ProtoFlux:Tau|Tau]] node to do the same thing, streamlining your ProtoFlux.|suggestion}}


== Outputs ==
== Outputs ==
Line 14: Line 25:
=== * ([[Type:Float|float]]) ===
=== * ([[Type:Float|float]]) ===
The value of π, approximately <code>3.14159274</code>.
The value of π, approximately <code>3.14159274</code>.
== Further Reading ==
=== Videos ===
<youtube>S32sIhukA9E</youtube>


[[Category:ProtoFlux:Math:Constants]]
[[Category:ProtoFlux:Math:Constants]]

Latest revision as of 07:18, 30 June 2024

π
*
Constants

The Pi node outputs the mathematical constant π.

Applications this can be used in:

  • Geometry and Circle Calculations
  • Rotations and Angle Calculations
  • Wave Generation (combined with Sin)
  • Physics Simulations (especially when dealing with circular motion, pendulum movements, or orbital mechanics)
  • Procedural Generation (especially curves)
  • Lighting and Shading (used in lighting models to calculate angles and intensities of light, reflections, and refractions)
  • Animation Curves
If you need to use 2PI for calculations, instead of using the Mul or Add nodes, you can use the Tau node to do the same thing, streamlining your ProtoFlux.

Outputs

* (float)

The value of π, approximately 3.14159274.

Further Reading

Videos