| Package | Description |
|---|---|
| org.openimaj.math.geometry.line | |
| org.openimaj.math.geometry.path | |
| org.openimaj.math.geometry.point | |
| org.openimaj.math.geometry.shape | |
| org.openimaj.math.geometry.triangulation |
| Modifier and Type | Method and Description |
|---|---|
Line2d |
Line2d.clone() |
Line2d |
Line2d.getNormal()
Returns a line that is at 90 degrees to the original line.
|
Line2d |
Line2d.getNormal(Point2d p)
Returns a line that is at 90 degrees to the original line and also passes
through the given point.
|
static Line2d |
Line2d.lineFromRotation(int x1,
int y1,
double theta,
int length)
Create a line of a given length that starts at a point and has a given
angle.
|
Line2d |
Line2d.lineWithinSquare(Rectangle r)
Given a rectangle, return the line that actually fits inside the
rectangle for this line
|
Line2d |
Line2d.transform(Jama.Matrix transform)
Transform a line.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Line2d> |
Line2d.lineIterator() |
| Modifier and Type | Method and Description |
|---|---|
Line2d.IntersectionResult |
Line2d.getIntersection(Line2d otherLine)
Calculates the intersection point of this line and another line
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Line2d> |
Polyline.lineIterator() |
Iterator<Line2d> |
Path2d.lineIterator()
Convert the path to a iterated polyline representation
|
| Constructor and Description |
|---|
Polyline(Iterator<Line2d> lineIterator)
Construct a
Polyline from line segments |
| Modifier and Type | Method and Description |
|---|---|
Line2d |
PointListConnections.calculateNormalLine(int idx,
PointList pointList,
float scale)
Calculate a normal line for a given vertex.
|
Line2d |
PointListConnections.calculateNormalLine(Point2d pt,
PointList pointList,
float scale)
Calculate a normal line for a given vertex.
|
| Modifier and Type | Method and Description |
|---|---|
List<Line2d> |
PointList.getLines() |
List<Line2d> |
PointListConnections.getLines(PointList pointList)
Get the connections as a list of lines based on the points in the given
PointList. |
List<Line2d> |
PointList.getLines(PointListConnections conns) |
| Modifier and Type | Method and Description |
|---|---|
void |
PointListConnections.addConnection(PointList pl,
Line2d line)
Add a connection between the two end points of the given line in the
given
PointList. |
| Constructor and Description |
|---|
PointListConnections(PointList pl,
List<Line2d> lines)
|
| Modifier and Type | Method and Description |
|---|---|
List<Line2d> |
Triangle.getEdges() |
Map<Line2d,Point2d> |
Triangle.intersectionSides(Line2d line)
The intersection of this triangle with the line defined by y = mx + c.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Line2d,Point2d> |
Triangle.intersectionSides(Line2d line)
The intersection of this triangle with the line defined by y = mx + c.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Line2d> |
Voronoi.computeVoronoiEdges(List<? extends Point2d> points)
Compute the Voronoi diagram as a list of its edges
|
static List<Line2d> |
Voronoi.computeVoronoiEdges(List<? extends Point2d> points,
double width,
double height)
Compute the Voronoi diagram as a list of its edges
|