distance3d.random.rand_ellipsoid¶
- distance3d.random.rand_ellipsoid(random_state, center_scale=1.0, min_radius=0.0, radius_scale=1.0)[source]¶
Sample ellipsoid.
- Parameters:
- random_statenp.random.RandomState
Random number generator.
- center_scalefloat, optional (default: 1)
Scaling factor for center.
- min_radiusfloat, optional (default: 0)
Minimum radius of ellipsoid.
- radius_scalefloat, optional (default: 1)
Scaling factor for radii.
- Returns:
- ellipsoid2originarray, shape (4, 4)
Pose of the ellipsoid.
- radiiarray, shape (3,)
Radii of the ellipsoid within (min_radius, min_radius + radius_scale].