Skip to main content

Function: scatterOnEllipsoid()

scatterOnEllipsoid(options): SurfacePoint[]

Defined in: src/mobjects/three-d/scatter.ts:150

Scatter points uniformly by area on a sphere or ellipsoid surface.

A direction u maps to the surface point S u (S = diag(radii)). The area element there is proportional to |S^-1 u|, so candidates are accepted with that weight: the density is uniform over the surface, not over angles.

Parameters​

options​

ScatterOnEllipsoidOptions

Returns​

SurfacePoint[]

Post​

result.length <= options.count