public interface BodyShape extends Serializable
The shape is not provided as a single complete geometric model, but single points can be queried (
getIntersectionPoint(fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Line, fr.cnes.sirius.patrius.math.geometry.euclidean.threed.Vector3D, fr.cnes.sirius.patrius.frames.Frame, fr.cnes.sirius.patrius.time.AbsoluteDate)
).
Modifier and Type | Method and Description |
---|---|
Frame |
getBodyFrame()
Get body frame related to body shape.
|
GeodeticPoint |
getIntersectionPoint(Line line,
Vector3D close,
Frame frame,
AbsoluteDate date)
Get the intersection point of a line with the surface of the body.
|
Vector3D |
transform(GeodeticPoint point)
Transform a surface-relative point to a cartesian point.
|
GeodeticPoint |
transform(Vector3D point,
Frame frame,
AbsoluteDate date)
Transform a cartesian point to a surface-relative point.
|
Frame getBodyFrame()
GeodeticPoint getIntersectionPoint(Line line, Vector3D close, Frame frame, AbsoluteDate date) throws PatriusException
A line may have several intersection points with a closed surface (we consider the one point case as a degenerated two points case). The close parameter is used to select which of these points should be returned. The selected point is the one that is closest to the close point.
line
- test line (may intersect the body or not)close
- point used for intersections selectionframe
- frame in which line is expresseddate
- date of the line in given framePatriusException
- if line cannot be converted to body frameGeodeticPoint transform(Vector3D point, Frame frame, AbsoluteDate date) throws PatriusException
point
- cartesian pointframe
- frame in which cartesian point is expresseddate
- date of the computation (used for frames conversions)PatriusException
- if point cannot be converted to body frameVector3D transform(GeodeticPoint point)
point
- surface-relative pointCopyright © 2019 CNES. All rights reserved.