ProtoFlux:Pi: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page PI (ProtoFlux) to ProtoFlux:PI: Creating protoflux Namespace
Added suggestion note.
 
(3 intermediate revisions by 2 users 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 Pi].
The '''Pi''' node outputs the mathematical constant [https://en.wikipedia.org/wiki/Pi π].


== Inputs ==
Applications this can be used in:
None.
* 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 ==


=== * ([[Type:Float|float]]) ===
=== * ([[Type:Float|float]]) ===
Pi. Its [[Type:Float|float]] value is 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