This function checks intesection of solid cube and hollow ellipsoid
This algorithm is taken from http://tog.acm.org/resources/GraphicsGems/gems/Boxellipsoid.c
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(tem_ellipsoid_type), | intent(in) | :: | me | ellipsoid type |
||
| type(tem_cube_type), | intent(in) | :: | cube | cube type |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=rk), | private | :: | rsqr | ||||
| real(kind=rk), | private | :: | a | ||||
| real(kind=rk), | private | :: | b | ||||
| integer, | private | :: | i | ||||
| real(kind=rk), | private | :: | dmin | ||||
| real(kind=rk), | private | :: | dmax |