# min

## min number

### min number obj

Returns the minimum number of objects type obj.

## min dist

### min dist obj(id1) obj(id2)

Returns the minimum distance of objets id1 and id2.
Examples:
1) `min dist vol(1) vol(2);` returns the minimum distance of volumes 1 and 2.
2) `min dist light(3) traj(-1);` returns the minimum minimum of light 3 to the trajectory -1.
3) `min dist poi(0,0,0) vol[1,3];` returns the minimum distance of origin to verticesof volumes 1,2,3.

### min dist vertex obj(id1) obj(id2)

Returns the number of objects and vertices.
Examples:
1) `min dist vertex poi(x,y,z) vol(1);` returns 1,s with s=number of the farthest point of volume 1 from the point (x,y,z).
2) `min dist vertex vol(1) vol(2);` returns 1, s1, 2, s2 with si = point number of the volume i such that their distance is a minimum.
3) `min dist vol[1,3] vol[11,17];` returns v1,s1,v2,s2 with s1=point number of volume v1 (between 1 and 3), s2 = point number of volume v2 (between 11 and 17) such that their distance is a minimum.