VEX Dictionary / sample_hemisphere
sample_hemisphere
Generates a random unit direction inside a hemisphere around a center, with optional bias toward that center.
group: sampling
Available in every context
Usage
vector sample_hemisphere(vector2 u)
vector sample_hemisphere(vector center, vector2 u)
vector sample_hemisphere(float bias, vector2 u)
vector sample_hemisphere(vector center, float bias, vector2 u)
Examples
No worked examples yet.
Signatures (from vcc -X)
vector sample_hemisphere(float, vector2)all contextsvector sample_hemisphere(vector2)all contextsvector sample_hemisphere(vector, float, vector2)all contextsvector sample_hemisphere(vector, vector2)all contexts