Package georegression.metric
Class Intersection2D_I32
java.lang.Object
georegression.metric.Intersection2D_I32
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontains(Rectangle2D_I32 a, int x, int y) True if the point is contained inside the rectanglestatic booleancontains(RectangleLength2D_I32 a, int x, int y) True if the point is contained inside the rectanglestatic booleancontainsConcave(Polygon2D_I32 polygon, Point2D_I32 pt) Checks to see if the point is contained inside the concave polygon.static booleancontainsConvex(Polygon2D_I32 polygon, Point2D_I32 pt) Checks to see if the point is contained inside the convex polygon.static booleanintersection(Rectangle2D_I32 a, Rectangle2D_I32 b, Rectangle2D_I32 result) Finds the intersection between two rectangles.static booleanChecks to see if the two rectangles intersect each other
-
Constructor Details
-
Intersection2D_I32
public Intersection2D_I32()
-
-
Method Details
-
intersects
Checks to see if the two rectangles intersect each other- Parameters:
a- Rectangleb- Rectangle- Returns:
- true if intersection
-
intersection
Finds the intersection between two rectangles. If the rectangles don't intersect then false is returned.- Parameters:
a- Rectangleb- Rectangleresult- Storage for the found intersection- Returns:
- true if intersection
-
containsConvex
Checks to see if the point is contained inside the convex polygon. If the point is an the polygon's perimeter it is considered to NOT be inside.- Parameters:
polygon- Convex polygon. Not modified.pt- Point. Not modified.- Returns:
- True if the point is contained inside the polygon.
-
containsConcave
Checks to see if the point is contained inside the concave polygon. NOTE: Points which lie along the perimeter may or may not be considered as inside- Parameters:
polygon- Convex polygon. Not modified.pt- Point. Not modified.- Returns:
- True if the point is contained inside the polygon.
-
contains
True if the point is contained inside the rectangle- Parameters:
a- Rectanglex- x-coordinate of pointy- y-coordinate of point- Returns:
- true if the point is inside and false it is not
-
contains
True if the point is contained inside the rectangle- Parameters:
a- Rectanglex- x-coordinate of pointy- y-coordinate of point- Returns:
- true if the point is inside and false it is not
-