public class NearPoint extends Object implements Comparable<NearPoint>
distanceToPathNearPoint()
which retrieves the distance to the nearest
point on the the line segments on either side of the path point, rather than
just the point. Also, it will return null if the point appears to be "off the
end" of the Path.Modifier and Type | Field and Description |
---|---|
protected sc.fiji.snt.NearPoint.IntersectionOnLine |
closestIntersection |
int |
indexInPath |
protected PointInImage |
near |
Modifier | Constructor and Description |
---|---|
|
NearPoint(PointInImage nearPoint,
Path path,
int indexInPath) |
protected |
NearPoint(PointInImage nearPoint,
Path path,
int indexInPath,
boolean unScaledPositions) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NearPoint other) |
static sc.fiji.snt.NearPoint.IntersectionOnLine |
distanceFromPointToLine(double ax,
double ay,
double az,
double vx,
double vy,
double vz,
double x,
double y,
double z) |
protected static sc.fiji.snt.NearPoint.IntersectionOnLine |
distanceFromSinglePointPath(double pathX,
double pathY,
double pathZ,
double nearPointX,
double nearPointY,
double nearPointZ) |
static sc.fiji.snt.NearPoint.IntersectionOnLine |
distanceToLineSegment(double x,
double y,
double z,
double startX,
double startY,
double startZ,
double endX,
double endY,
double endZ) |
double |
distanceToPathNearPoint()
Returns the distance to the path, If a corresponding point on the path was
found .
|
double |
distanceToPathPoint() |
double |
distanceToPathPointSquared() |
PointInImage |
getNode() |
PointInCanvas |
getNodeUnscaled() |
Path |
getPath() |
static int |
normalSideOfPlane(double cx,
double cy,
double cz,
double nx,
double ny,
double nz,
double x,
double y,
double z) |
String |
toString() |
public final int indexInPath
protected PointInImage near
protected sc.fiji.snt.NearPoint.IntersectionOnLine closestIntersection
public NearPoint(PointInImage nearPoint, Path path, int indexInPath)
protected NearPoint(PointInImage nearPoint, Path path, int indexInPath, boolean unScaledPositions)
public PointInImage getNode()
public PointInCanvas getNodeUnscaled()
public Path getPath()
public int compareTo(NearPoint other)
compareTo
in interface Comparable<NearPoint>
public double distanceToPathNearPoint()
public static sc.fiji.snt.NearPoint.IntersectionOnLine distanceToLineSegment(double x, double y, double z, double startX, double startY, double startZ, double endX, double endY, double endZ)
public double distanceToPathPoint()
public double distanceToPathPointSquared()
public static int normalSideOfPlane(double cx, double cy, double cz, double nx, double ny, double nz, double x, double y, double z)
public static sc.fiji.snt.NearPoint.IntersectionOnLine distanceFromPointToLine(double ax, double ay, double az, double vx, double vy, double vz, double x, double y, double z)
protected static sc.fiji.snt.NearPoint.IntersectionOnLine distanceFromSinglePointPath(double pathX, double pathY, double pathZ, double nearPointX, double nearPointY, double nearPointZ)
Copyright © 2018–2021 Morphonets. All rights reserved.