Sphere.sample#
- Sphere.sample(n_samples, radius=None, center=None)#
Samples points from the surface of a sphere.
- Parameters:
- n_samplesint
Number of samples to draw
- radiusnp.ndarray, optional
Radius of the sphere
- centernp.ndarray, optional
Center of the sphere along each axis
- Returns:
- np.ndarray
Sampled points.