public class NearPoint extends java.lang.Object implements java.lang.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 |
---|---|
int |
indexInPath |
Constructor and Description |
---|
NearPoint(PointInImage nearPoint,
Path path,
int indexInPath) |
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) |
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) |
java.lang.String |
toString() |
public NearPoint(PointInImage nearPoint, Path path, int indexInPath)
public PointInImage getNode()
public PointInCanvas getNodeUnscaled()
public Path getPath()
public int compareTo(NearPoint other)
compareTo
in interface java.lang.Comparable<NearPoint>
public java.lang.String toString()
toString
in class java.lang.Object
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)