intersect
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D[] intersect(Circle3D circle)
Calculates the intersection of this sphere with the circle specified. The
result is either an empty array, if the two objects do not intersect or if
the two centers have the same y coordinate. So we also return an empty
array if the circle is on the sphere and would result in an infinity of
intersection points. Otherwise it returns the two intersection points. We
assume that the circle is parallel to x-plane. If it is not, sphere and
circle have to be rotated into a coordinate system, where this is the case
before calling this method.
- Parameters:
circle
- a circle on the x-plane
- Returns:
- no or two intersection points