| Package | Description |
|---|---|
| net.lecousin.framework.geometry |
Geometry utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle2DInt |
Rectangle2DInt.getIntersection(Rectangle2DInt r)
return the rectangle corresponding to the intersection or null if there is no intersection.
|
Rectangle2DInt |
Line2DInt.getRectangle()
return the rectangle defined by the 2 points of this line.
|
Rectangle2DInt |
EdgeSizeInt.inside(Rectangle2DInt r)
Return a rectangle from the given one, removing the edges.
|
| Modifier and Type | Method and Description |
|---|---|
List<Rectangle2DInt> |
MultipleRectangle2DInt.getRectangles() |
| Modifier and Type | Method and Description |
|---|---|
void |
MultipleRectangle2DInt.add(Rectangle2DInt rect)
Add a rectangle.
|
boolean |
Rectangle2DInt.contains(Rectangle2DInt r)
return true if this rectangle contains entirely the given rectangle r.
|
void |
Rectangle2DInt.extendToContain(Rectangle2DInt r)
Extand this rectangle so it can contain the given rectangle.
|
Rectangle2DInt |
Rectangle2DInt.getIntersection(Rectangle2DInt r)
return the rectangle corresponding to the intersection or null if there is no intersection.
|
Point2DInt[] |
Line2DInt.getIntersection(Rectangle2DInt r)
return the intersection points between this line and the given rectangle: it may returns 0 to 2 points,
or null if the line is on a rectangle border.
|
Point2DInt[] |
Rectangle2DInt.getIntersectionPoints(Rectangle2DInt r)
return the intersection points between this rectangle and the given one or null if both are equals:
it may return 0 to 2 points (1 point being the case where only one of their corner is common).
|
boolean |
Rectangle2DInt.hasCommonArea(Rectangle2DInt r)
return true if this rectangle contains the given rectangle, or has an intersection with it.
|
Rectangle2DInt |
EdgeSizeInt.inside(Rectangle2DInt r)
Return a rectangle from the given one, removing the edges.
|
| Constructor and Description |
|---|
Rectangle2DInt(Rectangle2DInt copy)
Constructor.
|
Copyright © 2017. All rights reserved.