ProtoFlux:Random Point In Circle: Difference between revisions

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


The '''Random Point In Circle''' node returns a random [[Type:float2|float2]] value of a point in a [https://en.wikipedia.org/wiki/Unit_circle unit circle], the X and Y will be inbetween <code>-1</code> and <code>1</code> (exclusive).
The '''Random Point In Circle''' node returns a random [[Type:float2|float2]] value of a point in a [https://en.wikipedia.org/wiki/Unit_circle unit circle], the X and Y will be in between <code>-1</code> and <code>1</code> (exclusive).


{{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}}
{{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}}
Line 15: Line 15:
== Outputs ==
== Outputs ==


=== * (Pseudo-Generic) ===
=== * ([[Type:float2|float2]]) ===


The random result.
The random result.


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

Latest revision as of 17:18, 1 July 2024

Random Point In Circle
*
Point

The Random Point In Circle node returns a random float2 value of a point in a unit circle, the X and Y will be in between -1 and 1 (exclusive).

This node constantly changes its value every frame, if you want to use this value, make sure to either Write to a Variable or use it within that frame.

Outputs

* (float2)

The random result.