ProtoFlux:Random Point On Circle: Difference between revisions

From Resonite Wiki
Created a page for the Random Point On Circle node.
 
might as well
(One intermediate revision by the same user not shown)
Line 9: Line 9:
|}}
|}}


The '''Random Point On Circle''' node returns a random [[Type:float2|float2]] value of a point on a [https://en.wikipedia.org/wiki/Unit_circle unit circle]. Since the line is where the random generation occurs is on the circle, the X and Y will be between <code>-1</code> and <code>1</code> (inclusive to the circle only).
The '''Random Point On Circle''' node returns a random [[Type:float2|float2]] value of a point on the edge of a [https://en.wikipedia.org/wiki/Unit_circle unit circle].


{{Note|This node constantly changes its value every frame, if you want to use this value, make sure to either [[ProtoFlux:Write|Write]] to a [[ProtoFlux:Data Model Store|Variable]] or use it within that frame.|warning}}
{{ProtoFluxRandomNodeWarning}}


== Outputs ==
== Outputs ==
Line 17: Line 17:
=== * ([[Type:float2|float2]]) ===
=== * ([[Type:float2|float2]]) ===


The random result.
A random point on the edge of a unit circle.


[[Category:ProtoFlux:Math:Random:Point]]
[[Category:ProtoFlux:Math:Random:Point]]

Revision as of 19:30, 15 April 2025

Random Point On Circle
*
Point

The Random Point On Circle node returns a random float2 value of a point on the edge of a unit circle.

This node is a random node. Random nodes generate a new output every time they are accessed during an impulse chain, even if during the same frame. To reuse the same value for multiple impulse nodes, you must write the value to a Local, Store, or Data Model Store before operating on it.

Outputs

* (float2)

A random point on the edge of a unit circle.