Interface Shape2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
-
- Type Parameters:
ST- is the type of the general implementation.IT- is the type of the implementation of this shape.IE- is the type of the path elements.P- is the type of the points.V- is the type of the vectors.B- is the type of the bounding boxes.
- All Superinterfaces:
Cloneable,JsonableObject,Serializable,Shape2D<ST,IT,PathIterator2afp<IE>,P,V,B>
- All Known Subinterfaces:
Circle2afp<ST,IT,IE,P,V,B>,Ellipse2afp<ST,IT,IE,P,V,B>,MultiShape2afp<ST,IT,CT,IE,P,V,B>,OrientedRectangle2afp<ST,IT,IE,P,V,B>,Parallelogram2afp<ST,IT,IE,P,V,B>,Path2afp<ST,IT,IE,P,V,B>,Rectangle2afp<ST,IT,IE,P,V,B>,RectangularShape2afp<ST,IT,IE,P,V,B>,RoundRectangle2afp<ST,IT,IE,P,V,B>,Segment2afp<ST,IT,IE,P,V,B>,Shape2d<IT>,Shape2dfx<IT>,Triangle2afp<ST,IT,IE,P,V,B>
- All Known Implementing Classes:
AbstractRectangularShape2d,AbstractRectangularShape2dfx,AbstractShape2d,AbstractShape2dfx,Circle2d,Circle2dfx,Ellipse2d,Ellipse2dfx,MultiShape2d,MultiShape2dfx,OrientedRectangle2d,OrientedRectangle2dfx,Parallelogram2d,Parallelogram2dfx,Path2d,Path2dfx,Rectangle2d,Rectangle2dfx,RoundRectangle2d,RoundRectangle2dfx,Segment2d,Segment2dfx,SegmentPoint2d,Triangle2d,Triangle2dfx
public interface Shape2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>> extends Shape2D<ST,IT,PathIterator2afp<IE>,P,V,B>
2D shape with 2D floating coordinates.- 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleancontains(double x, double y)Replies if the given point is inside this shape.booleancontains(Rectangle2afp<?,?,?,?,?,?> rectangle)Replies if the given rectangle is inside this shape.default booleancontains(Point2D<?,?> pt)Replies if the given point is inside this shape.default booleancontains(Shape2D<?,?,?,?,?,?> shape)Replies if this shape is inside the given shape.default STcreateTransformedShape(Transform2D transform)Apply the transformation to the shape and reply the result.PgetClosestPointTo(Circle2afp<?,?,?,?,?,?> circle)Replies the closest point on this shape to the given circle.PgetClosestPointTo(Ellipse2afp<?,?,?,?,?,?> ellipse)Replies the closest point on this shape to the given ellipse.default PgetClosestPointTo(MultiShape2afp<?,?,?,?,?,?,?> multishape)Replies the closest point on this shape to the given multishape.PgetClosestPointTo(OrientedRectangle2afp<?,?,?,?,?,?> orientedRectangle)Replies the closest point on this shape to the given oriented rectangle.PgetClosestPointTo(Parallelogram2afp<?,?,?,?,?,?> parallelogram)Replies the closest point on this shape to the given parallelogram.PgetClosestPointTo(Path2afp<?,?,?,?,?,?> path)Replies the closest point on this shape to the given path.PgetClosestPointTo(Rectangle2afp<?,?,?,?,?,?> rectangle)Replies the closest point on this shape to the given rectangle.PgetClosestPointTo(RoundRectangle2afp<?,?,?,?,?,?> roundRectangle)Replies the closest point on this shape to the given round rectangle.PgetClosestPointTo(Segment2afp<?,?,?,?,?,?> segment)Replies the closest point on this shape to the given segment.PgetClosestPointTo(Triangle2afp<?,?,?,?,?,?> triangle)Replies the closest point on this shape to the given triangle.default PgetClosestPointTo(Shape2D<?,?,?,?,?,?> shape)Replies the point on the shape that is closest to the given shape.default doublegetDistanceSquared(Circle2afp<?,?,?,?,?,?> circle)Replies the minimum distance between this shape and the given circle.default doublegetDistanceSquared(Ellipse2afp<?,?,?,?,?,?> ellipse)Replies the minimum distance between this shape and the given ellipse.default doublegetDistanceSquared(MultiShape2afp<?,?,?,?,?,?,?> multishape)Replies the minimum distance between this shape and the given multishape.default doublegetDistanceSquared(OrientedRectangle2afp<?,?,?,?,?,?> orientedRectangle)Replies the minimum distance between this shape and the given oriented rectangle.default doublegetDistanceSquared(Parallelogram2afp<?,?,?,?,?,?> parallelogram)Replies the minimum distance between this shape and the given parallelogram.default doublegetDistanceSquared(Path2afp<?,?,?,?,?,?> path)Replies the minimum distance between this shape and the given path.default doublegetDistanceSquared(Rectangle2afp<?,?,?,?,?,?> rectangle)Replies the minimum distance between this shape and the given rectangle.default doublegetDistanceSquared(RoundRectangle2afp<?,?,?,?,?,?> roundRectangle)Replies the minimum distance between this shape and the given round rectangle.default doublegetDistanceSquared(Segment2afp<?,?,?,?,?,?> segment)Replies the minimum distance between this shape and the given segment.default doublegetDistanceSquared(Triangle2afp<?,?,?,?,?,?> triangle)Replies the minimum distance between this shape and the given triangle.default doublegetDistanceSquared(Shape2D<?,?,?,?,?,?> shape)Replies the squared value of the minimal distance from this shape to the given shape.GeomFactory2afp<IE,P,V,B>getGeomFactory()Replies the geometry factory associated to this point.booleanintersects(Circle2afp<?,?,?,?,?,?> circle)Replies if this shape is intersecting the given circle.booleanintersects(Ellipse2afp<?,?,?,?,?,?> ellipse)Replies if this shape is intersecting the given ellipse.booleanintersects(MultiShape2afp<?,?,?,?,?,?,?> multishape)Replies if this shape is intersecting the given multishape.booleanintersects(OrientedRectangle2afp<?,?,?,?,?,?> orientedRectangle)Replies if this shape is intersecting the given rectangle.booleanintersects(Parallelogram2afp<?,?,?,?,?,?> parallelogram)Replies if this shape is intersecting the given parallelogram.default booleanintersects(Path2afp<?,?,?,?,?,?> path)Replies if this shape is intersecting the given path.booleanintersects(PathIterator2afp<?> iterator)Replies if this shape is intersecting the shape representing the given path iterator.booleanintersects(Rectangle2afp<?,?,?,?,?,?> rectangle)Replies if this shape is intersecting the given rectangle.booleanintersects(RoundRectangle2afp<?,?,?,?,?,?> roundRectangle)Replies if this shape is intersecting the given rectangle.booleanintersects(Segment2afp<?,?,?,?,?,?> segment)Replies if this shape is intersecting the given line.booleanintersects(Triangle2afp<?,?,?,?,?,?> triangle)Replies if this shape is intersecting the given triangle.default booleanintersects(Shape2D<?,?,?,?,?,?> shape)Replies if this shape is intersecting the given shape.default BtoBoundingBox()Replies the bounding box of this shape.voidtranslate(double dx, double dy)Translate the shape.default voidtranslate(Vector2D<?,?> vector)Translate the shape.-
Methods inherited from interface org.arakhne.afc.vmutil.json.JsonableObject
toJson
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.Shape2D
clear, clone, equalsToPathIterator, equalsToShape, getClosestPointTo, getDistance, getDistance, getDistanceL1, getDistanceLinf, getDistanceSquared, getFarthestPointTo, getPathIterator, getPathIterator, isEmpty, operator_add, operator_and, operator_and, operator_minus, operator_multiply, operator_plus, operator_remove, operator_upTo, set, toBoundingBox
-
-
-
-
Method Detail
-
contains
@Pure default boolean contains(Point2D<?,?> pt)
Description copied from interface:Shape2DReplies if the given point is inside this shape.- Specified by:
containsin interfaceShape2D<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>- Parameters:
pt- the point.- Returns:
trueif the given shape is intersecting this shape, otherwisefalse.
-
contains
@Pure default boolean contains(Shape2D<?,?,?,?,?,?> shape)
Description copied from interface:Shape2DReplies if this shape is inside the given shape.You must use the containing functions with a specific parameter type in place of this general function. Indeed, the implementation of this function is unefficient due to the tests against the types of the given shape, and the cast operators.
- Specified by:
containsin interfaceShape2D<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>- Parameters:
shape- the shape to compare to.- Returns:
trueif the given shape is inside this shape;falseotherwise.
-
contains
@Pure boolean contains(Rectangle2afp<?,?,?,?,?,?> rectangle)
Replies if the given rectangle is inside this shape.- Parameters:
rectangle- the rectangle.- Returns:
trueif the given rectangle is inside this shape, otherwisefalse.
-
contains
@Pure boolean contains(double x, double y)Replies if the given point is inside this shape.- Parameters:
x- x coordinate of the point to test.y- y coordinate of the point to test.- Returns:
trueif the given point is inside this shape, otherwisefalse.
-
translate
void translate(double dx, double dy)Translate the shape.- Parameters:
dx- x translation.dy- y translation.
-
translate
@Pure default void translate(Vector2D<?,?> vector)
Description copied from interface:Shape2DTranslate the shape.- Specified by:
translatein interfaceShape2D<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>- Parameters:
vector- the translation vector.
-
intersects
@Pure default boolean intersects(Shape2D<?,?,?,?,?,?> shape)
Description copied from interface:Shape2DReplies if this shape is intersecting the given shape.You must use the intersection functions with a specific parameter type in place of this general function. Indeed, the implementation of this function is unefficient due to the tests against the types of the given shape, and the cast operators.
- Specified by:
intersectsin interfaceShape2D<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>- Parameters:
shape- the shape to compare to.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure boolean intersects(Ellipse2afp<?,?,?,?,?,?> ellipse)
Replies if this shape is intersecting the given ellipse.- Parameters:
ellipse- the ellipse.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure boolean intersects(Circle2afp<?,?,?,?,?,?> circle)
Replies if this shape is intersecting the given circle.- Parameters:
circle- the circle.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure boolean intersects(Rectangle2afp<?,?,?,?,?,?> rectangle)
Replies if this shape is intersecting the given rectangle.- Parameters:
rectangle- the rectangle.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure boolean intersects(Segment2afp<?,?,?,?,?,?> segment)
Replies if this shape is intersecting the given line.- Parameters:
segment- the segment.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure boolean intersects(Triangle2afp<?,?,?,?,?,?> triangle)
Replies if this shape is intersecting the given triangle.- Parameters:
triangle- the triangle.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure default boolean intersects(Path2afp<?,?,?,?,?,?> path)
Replies if this shape is intersecting the given path.- Parameters:
path- the other path.- Returns:
trueif this shape is intersecting the given path;falseif there is no intersection.
-
intersects
@Pure boolean intersects(PathIterator2afp<?> iterator)
Replies if this shape is intersecting the shape representing the given path iterator.- Parameters:
iterator- the path iterator.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure boolean intersects(OrientedRectangle2afp<?,?,?,?,?,?> orientedRectangle)
Replies if this shape is intersecting the given rectangle.- Parameters:
orientedRectangle- the oriented rectangle.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure boolean intersects(Parallelogram2afp<?,?,?,?,?,?> parallelogram)
Replies if this shape is intersecting the given parallelogram.- Parameters:
parallelogram- the parallelogram.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure boolean intersects(RoundRectangle2afp<?,?,?,?,?,?> roundRectangle)
Replies if this shape is intersecting the given rectangle.- Parameters:
roundRectangle- the round rectangle.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
intersects
@Pure boolean intersects(MultiShape2afp<?,?,?,?,?,?,?> multishape)
Replies if this shape is intersecting the given multishape.- Parameters:
multishape- the multishape.- Returns:
trueif this shape is intersecting the given shape;falseif there is no intersection.
-
getDistanceSquared
@Pure default double getDistanceSquared(Shape2D<?,?,?,?,?,?> shape)
Description copied from interface:Shape2DReplies the squared value of the minimal distance from this shape to the given shape.- Specified by:
getDistanceSquaredin interfaceShape2D<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>- Parameters:
shape- the shape.- Returns:
- squared value of the minimal distance between this shape and the given shape.
-
getDistanceSquared
@Pure default double getDistanceSquared(Ellipse2afp<?,?,?,?,?,?> ellipse)
Replies the minimum distance between this shape and the given ellipse.- Parameters:
ellipse- the ellipse.- Returns:
- the minimum distance between the two shapes.
-
getDistanceSquared
@Pure default double getDistanceSquared(Circle2afp<?,?,?,?,?,?> circle)
Replies the minimum distance between this shape and the given circle.- Parameters:
circle- the circle.- Returns:
- the minimum distance between the two shapes.
-
getDistanceSquared
@Pure default double getDistanceSquared(Rectangle2afp<?,?,?,?,?,?> rectangle)
Replies the minimum distance between this shape and the given rectangle.- Parameters:
rectangle- the rectangle.- Returns:
- the minimum distance between the two shapes.
-
getDistanceSquared
@Pure default double getDistanceSquared(Segment2afp<?,?,?,?,?,?> segment)
Replies the minimum distance between this shape and the given segment.- Parameters:
segment- the segment.- Returns:
- the minimum distance between the two shapes.
-
getDistanceSquared
@Pure default double getDistanceSquared(Triangle2afp<?,?,?,?,?,?> triangle)
Replies the minimum distance between this shape and the given triangle.- Parameters:
triangle- the triangle.- Returns:
- the minimum distance between the two shapes.
-
getDistanceSquared
@Pure default double getDistanceSquared(Path2afp<?,?,?,?,?,?> path)
Replies the minimum distance between this shape and the given path.- Parameters:
path- the path.- Returns:
- the minimum distance between the two shapes.
-
getDistanceSquared
@Pure default double getDistanceSquared(OrientedRectangle2afp<?,?,?,?,?,?> orientedRectangle)
Replies the minimum distance between this shape and the given oriented rectangle.- Parameters:
orientedRectangle- the oriented rectangle.- Returns:
- the minimum distance between the two shapes.
-
getDistanceSquared
@Pure default double getDistanceSquared(Parallelogram2afp<?,?,?,?,?,?> parallelogram)
Replies the minimum distance between this shape and the given parallelogram.- Parameters:
parallelogram- the parallelogram.- Returns:
- the minimum distance between the two shapes.
-
getDistanceSquared
@Pure default double getDistanceSquared(RoundRectangle2afp<?,?,?,?,?,?> roundRectangle)
Replies the minimum distance between this shape and the given round rectangle.- Parameters:
roundRectangle- the round rectangle.- Returns:
- the minimum distance between the two shapes.
-
getDistanceSquared
@Pure default double getDistanceSquared(MultiShape2afp<?,?,?,?,?,?,?> multishape)
Replies the minimum distance between this shape and the given multishape.- Parameters:
multishape- the multishape.- Returns:
- the minimum distance between the two shapes.
-
getClosestPointTo
@Pure default P getClosestPointTo(Shape2D<?,?,?,?,?,?> shape)
Description copied from interface:Shape2DReplies the point on the shape that is closest to the given shape.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Specified by:
getClosestPointToin interfaceShape2D<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>- Parameters:
shape- the shape.- Returns:
- the closest point on the shape.
-
getClosestPointTo
@Pure P getClosestPointTo(Ellipse2afp<?,?,?,?,?,?> ellipse)
Replies the closest point on this shape to the given ellipse.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
ellipse- the ellipse.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getClosestPointTo
@Pure P getClosestPointTo(Circle2afp<?,?,?,?,?,?> circle)
Replies the closest point on this shape to the given circle.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
circle- the circle.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getClosestPointTo
@Pure P getClosestPointTo(Rectangle2afp<?,?,?,?,?,?> rectangle)
Replies the closest point on this shape to the given rectangle.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
rectangle- the rectangle.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getClosestPointTo
@Pure P getClosestPointTo(Segment2afp<?,?,?,?,?,?> segment)
Replies the closest point on this shape to the given segment.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
segment- the segment.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getClosestPointTo
@Pure P getClosestPointTo(Triangle2afp<?,?,?,?,?,?> triangle)
Replies the closest point on this shape to the given triangle.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
triangle- the triangle.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getClosestPointTo
@Pure P getClosestPointTo(OrientedRectangle2afp<?,?,?,?,?,?> orientedRectangle)
Replies the closest point on this shape to the given oriented rectangle.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
orientedRectangle- the oriented rectangle.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getClosestPointTo
@Pure P getClosestPointTo(Parallelogram2afp<?,?,?,?,?,?> parallelogram)
Replies the closest point on this shape to the given parallelogram.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
parallelogram- the parallelogram.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getClosestPointTo
@Pure P getClosestPointTo(RoundRectangle2afp<?,?,?,?,?,?> roundRectangle)
Replies the closest point on this shape to the given round rectangle.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
roundRectangle- the round rectangle.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getClosestPointTo
@Pure P getClosestPointTo(Path2afp<?,?,?,?,?,?> path)
Replies the closest point on this shape to the given path.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
path- the path.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getClosestPointTo
@Pure default P getClosestPointTo(MultiShape2afp<?,?,?,?,?,?,?> multishape)
Replies the closest point on this shape to the given multishape.If the two shapes are intersecting, the replied point is always at the intersection of the two shapes. This function does not enforce the meaning of the replied point in the case of shape intersection. In other words, this function is warranting that the reply point is the either the penetration point, nor a perimeter point, nor any point with a specific meaning.
- Parameters:
multishape- the multishape.- Returns:
- the closest point on the shape; or the point itself if it is inside the shape.
-
getGeomFactory
GeomFactory2afp<IE,P,V,B> getGeomFactory()
Description copied from interface:Shape2DReplies the geometry factory associated to this point.- Specified by:
getGeomFactoryin interfaceShape2D<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>- Returns:
- the factory.
-
createTransformedShape
@Pure default ST createTransformedShape(Transform2D transform)
Description copied from interface:Shape2DApply the transformation to the shape and reply the result. This function does not change the current shape.- Specified by:
createTransformedShapein interfaceShape2D<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>- Parameters:
transform- is the transformation to apply to the shape.- Returns:
- the result of the transformation.
-
toBoundingBox
default B toBoundingBox()
Description copied from interface:Shape2DReplies the bounding box of this shape.- Specified by:
toBoundingBoxin interfaceShape2D<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>- Returns:
- the bounding box of this shape.
-
-