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.2.419.0 (24.2.419.0)
Syntax public double EllipsoidSeparationDistance(
Ellipsoid other,
Cartesian centerPointsDisplacement,
Matrix3By3 thisToOtherRotation,
out Cartesian pointOnThisSurface,
out Cartesian pointOnOtherSurface
)
Public Function EllipsoidSeparationDistance (
other As Ellipsoid,
centerPointsDisplacement As Cartesian,
thisToOtherRotation As Matrix3By3,
<OutAttribute> ByRef pointOnThisSurface As Cartesian,
<OutAttribute> ByRef pointOnOtherSurface As Cartesian
) As Double
public:
double EllipsoidSeparationDistance(
Ellipsoid^ other,
Cartesian centerPointsDisplacement,
Matrix3By3 thisToOtherRotation,
[OutAttribute] Cartesian% pointOnThisSurface,
[OutAttribute] Cartesian% pointOnOtherSurface
)
member EllipsoidSeparationDistance :
other : Ellipsoid *
centerPointsDisplacement : Cartesian *
thisToOtherRotation : Matrix3By3 *
pointOnThisSurface : Cartesian byref *
pointOnOtherSurface : Cartesian byref -> 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'.
- 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 this ellipsoid.
Return Value
Type:
DoubleThe separation between the closest point of this ellipsoid and the closest point of the given ellipsoid.
See Also