Class ClosestPointPathShadow3afp
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.afp.ClosestPointPathShadow3afp
-
class ClosestPointPathShadow3afp extends Object
Shadow of a path that is used for computing the crossing values between a shape and the shadow.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.core
- Maven Artifact Id:
- mathgeom
-
-
Constructor Summary
Constructors Constructor Description ClosestPointPathShadow3afp(PathIterator3afp<?> pathIterator, RectangularPrism3afp<?,?,?,?,?,?> bounds)
Construct new path shadow.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
computeCrossings(int crossings, double x0, double y0, double z0, double x1, double y1, double z1)
Compute the crossings between this shadow and the given segment.Point3D<?,?>
getClosestPointInOtherShape()
Replies the closest point on the shape that is compared to the shadow.Point3D<?,?>
getClosestPointInShadowShape()
Replies the closest point on the shape that is compared to the shadow.
-
-
-
Constructor Detail
-
ClosestPointPathShadow3afp
ClosestPointPathShadow3afp(PathIterator3afp<?> pathIterator, RectangularPrism3afp<?,?,?,?,?,?> bounds)
Construct new path shadow.- Parameters:
pathIterator
- the iterator on the path that is constituting the shadow.bounds
- the bounds of the shadow.
-
-
Method Detail
-
computeCrossings
public int computeCrossings(int crossings, double x0, double y0, double z0, double x1, double y1, double z1)
Compute the crossings between this shadow and the given segment.- Parameters:
crossings
- is the initial value of the crossings.x0
- is the first point of the segment.y0
- is the first point of the segment.z0
- is the first point of the segment.x1
- is the second point of the segment.y1
- is the second point of the segment.z1
- is the second point of the segment.- Returns:
- the crossings or
GeomConstants.SHAPE_INTERSECTS
.
-
getClosestPointInOtherShape
public Point3D<?,?> getClosestPointInOtherShape()
Replies the closest point on the shape that is compared to the shadow.- Returns:
- the closest point.
-
getClosestPointInShadowShape
public Point3D<?,?> getClosestPointInShadowShape()
Replies the closest point on the shape that is compared to the shadow.- Returns:
- the closest point.
-
-