| Package | Description |
|---|---|
| dev.nm.geometry | |
| dev.nm.geometry.polyline |
| Modifier and Type | Method and Description |
|---|---|
Point |
LineSegment.getEndPoint1()
Get the first endpoint.
|
Point |
LineSegment.getEndPoint2()
Get the second endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
double |
Point.distance(Point pt)
Compute the Euclidean distance between this point and the given point.
|
double |
LineSegment.distance(Point p)
Calculate the shortest distance between a point and this line segment in Euclidean geometry.
|
double |
LineSegment.perpendicularDistance(Point p) |
| Constructor and Description |
|---|
LineSegment(Point p1,
Point p2)
Create a line segment with two given endpoints.
|
| Modifier and Type | Method and Description |
|---|---|
List<Point> |
PolygonalChainByArray.vertices() |
List<Point> |
PolygonalChain.vertices()
Get a list of the vertices defining the chain.
|
| Constructor and Description |
|---|
PolygonalChainByArray(List<? extends Point> vertices)
Create a new instance which uses the given vertices.
|
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.