|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsidnet.core.misc.NCS_Location2D
public class NCS_Location2D
Constructor Summary | |
---|---|
NCS_Location2D(double x,
double y)
Creates a new instance of NCS_Location2D |
Method Summary | |
---|---|
double |
distanceTo(NCS_Location2D toLocation)
Calculates the distance between the current Location2D and the specified Location2D |
Location2D |
fromNCS(LocationContext locationContext)
Converts the current NCS-represented locations to a real location given the LocationContext (contains the dimensions in which the location will be converted to) |
double |
getX()
getter method. |
double |
getY()
getter method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NCS_Location2D(double x, double y)
Method Detail |
---|
public double getX()
public double getY()
public Location2D fromNCS(LocationContext locationContext)
LocationContext
- the locationContext based on which the real location coordintates can be obtainedpublic double distanceTo(NCS_Location2D toLocation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |