EllipsoidEllipsoidSeparationDistance Method (Ellipsoid, Cartesian, Matrix3By3) |
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.3.420.0 (24.3.420.0)
Syntax public double EllipsoidSeparationDistance(
Ellipsoid other,
Cartesian centerPointsDisplacement,
Matrix3By3 thisToOtherRotation
)
Public Function EllipsoidSeparationDistance (
other As Ellipsoid,
centerPointsDisplacement As Cartesian,
thisToOtherRotation As Matrix3By3
) As Double
public:
double EllipsoidSeparationDistance(
Ellipsoid^ other,
Cartesian centerPointsDisplacement,
Matrix3By3 thisToOtherRotation
)
member EllipsoidSeparationDistance :
other : Ellipsoid *
centerPointsDisplacement : Cartesian *
thisToOtherRotation : Matrix3By3 -> float
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'.
Return Value
Type:
DoubleThe separation between the closest point of this ellipsoid and the closest point of the given ellipsoid.
See Also