Simstim

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)

Related

Full SideFX documentation ↗