public class Connectivity2D extends Object
Constructor and Description |
---|
Connectivity2D() |
Modifier and Type | Method and Description |
---|---|
void |
addLowerRightPoint(Point p)
the contract of calling this method is that the new point must be gauranteed to
be the most far right lowest point (i.e.
|
void |
addPoint(int x,
int y) |
void |
addPoint(Point p) |
Iterable<Points> |
getIslands() |
static Set<Point> |
getNeighbours(Point p)
4 nieghbours per point
|
static Set<Point> |
getUpperLeftNeigbours(Point p)
2 negihbours (with lower x or y values
|
String |
toString() |
public void addPoint(int x, int y)
public void addLowerRightPoint(Point p)
p
- public void addPoint(Point p)
public static Set<Point> getNeighbours(Point p)
p
- public static Set<Point> getUpperLeftNeigbours(Point p)
p
- Copyright © 2015–2021 Fiji. All rights reserved.