public static class Path.ProjectionResult
Simple container for the result of a projection (i.e., a Path.project
call).
Path.project
Constructor and Description |
---|
ProjectionResult(double displacement,
double distance)
Simple container for the result of a projection (i.e., a
Path.project call). |
Modifier and Type | Method and Description |
---|---|
double |
component1()
displacement along the path
|
double |
component2()
Euclidean distance between the path and query points
|
Path.ProjectionResult |
copy(double displacement,
double distance)
Simple container for the result of a projection (i.e., a
Path.project call). |
boolean |
equals(java.lang.Object p) |
double |
getDisplacement()
displacement along the path
|
double |
getDistance()
Euclidean distance between the path and query points
|
int |
hashCode() |
java.lang.String |
toString() |
public ProjectionResult(double displacement, double distance)
Simple container for the result of a projection (i.e., a Path.project
call).
displacement
- displacement along the pathdistance
- Euclidean distance between the path and query pointsdisplacement
- displacement along the pathdistance
- Euclidean distance between the path and query pointsPath.project
public double getDisplacement()
displacement along the path
public double getDistance()
Euclidean distance between the path and query points
public double component1()
displacement along the path
public double component2()
Euclidean distance between the path and query points
public Path.ProjectionResult copy(double displacement, double distance)
Simple container for the result of a projection (i.e., a Path.project
call).
displacement
- displacement along the pathdistance
- Euclidean distance between the path and query pointsPath.project
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object p)