Click or drag to resize

EllipsoidEllipsoidSeparationDistance Method (Ellipsoid, Cartesian, Matrix3By3, Cartesian, Cartesian)

If the given Ellipsoid does not intersect with this ellipsoid this method returns the minimum separation between the surfaces of the two ellipsoids. If the ellipsoids do intersect, the resulting negative separation is the depth that the other ellipsoid intersects into this ellipsoid (calculated as the distance between the two points on the ellipsoid chosen in the same manner as in the non-intersecting case).

Namespace:  AGI.Foundation.Geometry.Shapes
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public double EllipsoidSeparationDistance(
	Ellipsoid other,
	Cartesian centerPointsDisplacement,
	Matrix3By3 thisToOtherRotation,
	out Cartesian pointOnThisSurface,
	out Cartesian pointOnOtherSurface
)

Parameters

other
Type: AGI.Foundation.Geometry.ShapesEllipsoid
The method finds the separation from the calling ellipsoid and this parameter ellipsoid.
centerPointsDisplacement
Type: AGI.Foundation.CoordinatesCartesian
The vector from the center of this ellipsoid to the center of the other ellipsoid, in the local frame of this ellipsoid.
thisToOtherRotation
Type: AGI.Foundation.CoordinatesMatrix3By3
The rotation matrix which represents the orientation of the other ellipsoid with respect to this one, corresponding to the result of GetAxesTransformation where this is the 'from' axes and the other axes is 'to'.
pointOnThisSurface
Type: AGI.Foundation.CoordinatesCartesian
The location on this ellipsoid's surface, in its body frame, which was determined to be the closest point to the other ellipsoid.
pointOnOtherSurface
Type: AGI.Foundation.CoordinatesCartesian
The location on the other ellipsoid's surface, in its body frame, which was determined to be the closest point to the this ellipsoid.

Return Value

Type: Double
The separation between the closest point of this ellipsoid and the closest point of the given ellipsoid.
See Also