distance3d.random.rand_capsule¶
- distance3d.random.rand_capsule(random_state, center_scale=1.0, radius_scale=1.0, height_scale=1.0)[source]¶
Sample capsule.
- Parameters:
- random_statenp.random.RandomState
Random number generator.
- center_scalefloat, optional (default: 1)
Scaling factor for center.
- radius_scalefloat, optional (default: 1)
Scaling factor for radius.
- height_scalefloat, optional (default: 1)
Scaling factor for height.
- Returns:
- capsule2originarray, shape (4, 4)
Pose of the capsule.
- radiusfloat
Radius of the capsule within (0, radius_scale].
- heightfloat
Height of the capsule within (0, height_scale].