@Override protected boolean shapeContainsPoint(final int x, final int y) { return Geometry.polylineContainsPoint(getBezierPoints(), x, y, TOLERANCE); }
@Override protected boolean shapeContainsPoint(int x, int y) { return Geometry.polylineContainsPoint(this.getBezierPoints(), x, y, TOLERANCE); }
@Override protected boolean shapeContainsPoint(int x, int y) { return Geometry.polylineContainsPoint(getBezierPoints(), x, y, TOLERANCE); }
protected boolean shapeContainsPoint(int x, int y) { Point location = getLocation(); return Geometry.polygonContainsPoint(getScaledPoints(), x - location.x, y - location.y); }
protected boolean shapeContainsPoint(int x, int y) { return Geometry.polygonContainsPoint(points, x, y); }
protected boolean shapeContainsPoint(int x, int y) { return Geometry.polylineContainsPoint(points, x, y, tolerance); }
/** * @return true if the distance between specified point and closest segment * of this PolyLine is less then {@link PolylineShape#tolerance} */ protected boolean shapeContainsPoint(int x, int y) { Point location = getLocation(); return Geometry.polylineContainsPoint(points, x - location.x, y - location.y, tolerance); }
protected boolean shapeContainsPoint(int x, int y) { Point location = getLocation(); return Geometry.polygonContainsPoint(points, x - location.x, y - location.y); }
/** * Returns true if the given segment intersects this segment. * * @param sx * start x * @param sy * start y * @param tx * end x * @param ty * end y * @return true if the segments intersect */ boolean intersects(int sx, int sy, int tx, int ty) { return Geometry.linesIntersect(start.x, start.y, end.x, end.y, sx, sy, tx, ty); }