Class BasicPathShadow3ai
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.ai.BasicPathShadow3ai
-
public class BasicPathShadow3ai 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 BasicPathShadow3ai(Path3ai<?,?,?,?,?,?> path)
Construct new path shadow.BasicPathShadow3ai(PathIterator3ai<?> pathIterator, int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
Construct new path shadow.BasicPathShadow3ai(PathIterator3ai<?> pathIterator, RectangularPrism3ai<?,?,?,?,?,?> bounds)
Construct new path shadow.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
computeCrossings(int crossings, int x0, int y0, int z0, int x1, int y1, int z1)
Compute the crossings between this shadow and the given segment.
-
-
-
Constructor Detail
-
BasicPathShadow3ai
public BasicPathShadow3ai(Path3ai<?,?,?,?,?,?> path)
Construct new path shadow.- Parameters:
path
- the path that is constituting the shadow.
-
BasicPathShadow3ai
public BasicPathShadow3ai(PathIterator3ai<?> pathIterator, RectangularPrism3ai<?,?,?,?,?,?> bounds)
Construct new path shadow.- Parameters:
pathIterator
- the iterator on the path that is constituting the shadow.bounds
- the bounding box enclosing the primitives of the path iterator.
-
BasicPathShadow3ai
public BasicPathShadow3ai(PathIterator3ai<?> pathIterator, int minX, int minY, int minZ, int maxX, int maxY, int maxZ)
Construct new path shadow.- Parameters:
pathIterator
- the iterator on the path that is constituting the shadow.minX
- minimum x coordinate of the bounding box enclosing the primitives of the path iterator.minY
- minimum y coordinate of the bounding box enclosing the primitives of the path iterator.minZ
- minimum z coordinate of the bounding box enclosing the primitives of the path iterator.maxX
- maximum x coordinate of the bounding box enclosing the primitives of the path iterator.maxY
- maximum y coordinate of the bounding box enclosing the primitives of the path iterator.maxZ
- maximum z coordinate of the bounding box enclosing the primitives of the path iterator.
-
-
Method Detail
-
computeCrossings
public int computeCrossings(int crossings, int x0, int y0, int z0, int x1, int y1, int 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
.
-
-