distance3d.distance.disk_to_disk¶
- distance3d.distance.disk_to_disk(center1, radius1, normal1, center2, radius2, normal2, epsilon=1e-08)[source]¶
Compute the shortest distance between two disks.
- Parameters:
- center1array, shape (3,)
Center of the disk.
- radius1float
Radius of the disk.
- normal1array, shape (3,)
Normal to the plane in which the disk lies.
- center2array, shape (3,)
Center of the disk.
- radius2float
Radius of the disk.
- normal2array, shape (3,)
Normal to the plane in which the disk lies.
- epsilonfloat, optional (default: 1e-8)
Values smaller than epsilon are considered to be 0.
- Returns:
- distfloat
The shortest distance between two disks.
- closest_point_disk1array, shape (3,)
Closest point on the disk 1.
- closest_point_disk2array, shape (3,)
Closest point on the disk 2.