|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJavaGrinders.spatial.SpatialVector
JavaGrinders.spatial.Capture
public class Capture
characterizes a single Capture with a capture location (as x, y, z coordinates) and a time stamp for the time of capture
| Constructor Summary | |
|---|---|
Capture()
empty constructor for the Capture class |
|
Capture(double x,
double y,
double z)
constructor for the Capture class with coordinates provided |
|
Capture(double x,
double y,
double z,
java.util.Date aTimeRef)
standard constructor for the 3D Capture class with coordinates and time provided |
|
Capture(SpatialVector aLocation)
constructor for the Capture class with coordinates provided as a SpatialVector |
|
Capture(SpatialVector aLocation,
java.util.Date aTimeRef)
constructor for the Capture class with coordinates and time provided |
|
| Method Summary | |
|---|---|
Capture |
applyMove(MoveVector aMove)
Returns the coordinates of this Capture after a Move has been applied to it |
double |
getSpeed(Capture otherCapture)
returns the speed of travel between this and another capture as distance/second |
double |
getTimeBetweenCaptures(Capture otherCapture)
returns the difference in timestamps for this and another capture |
long |
getTimeMilliSecs()
returns the timestamp for this capture |
java.util.Date |
getTimeRef()
returns the timestamp for this capture |
long |
getTimeSecs()
returns the timestamp for this capture |
java.lang.String |
getTimeString()
returns the timestamp for this capture as a string |
java.lang.String |
listValues()
returns the SpatialVector as a String |
void |
setTimeRef(java.util.Date aTimeRef)
sets the timestamp for this capture |
java.lang.String |
toFileString()
returns the SpatialVector as a String for writing the Coordinates to a file/screen |
SpatialVector |
toSpatialVector()
returns the SpatialVector part of this Capture |
java.lang.String |
toString()
returns the SpatialVector as a String |
| Methods inherited from class JavaGrinders.spatial.SpatialVector |
|---|
applyVector, applyVector, clone, copy, cross, dot, equals, getConnect, getEuclidianDistance, getLat, getLatDeg, getLength, getLengthSquared, getLong, getLongDeg, getManhattanDistance, getManhattanLength, getPolarVector, getScaledPoint, getSpatialVector, getSquaredEuclidianDistance, getX, getXY, getY, getZ, minus, negate, negateX, negateY, negateZ, plus, remapLatLongToDistanceCoords, rotate, rotate, rotateXY, rotateXZ, scale, setConnect, setLength, setX, setY, setZ, subtract, times, toPoint, toPolarVector, unitLength |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Capture(double x,
double y,
double z,
java.util.Date aTimeRef)
x - the x coordinate for this capturey - the y coordinate for this capturez - the z coordinate for this captureaTimeRef - the time stamp for this capturepublic Capture()
public Capture(double x,
double y,
double z)
x - the x coordinate for this capturey - the y coordinate for this capturez - the z coordinate for this capturepublic Capture(SpatialVector aLocation)
aLocation - the spatial vector for this capture
public Capture(SpatialVector aLocation,
java.util.Date aTimeRef)
aLocation - the spatial vector for this captureaTimeRef - the timestamp for this capture| Method Detail |
|---|
public SpatialVector toSpatialVector()
toSpatialVector in class SpatialVectorpublic java.util.Date getTimeRef()
public long getTimeMilliSecs()
public long getTimeSecs()
public java.lang.String getTimeString()
public void setTimeRef(java.util.Date aTimeRef)
aTimeRef - the time stamp for the capturepublic double getTimeBetweenCaptures(Capture otherCapture)
otherCapture - the other capturepublic double getSpeed(Capture otherCapture)
otherCapture - the other capturepublic Capture applyMove(MoveVector aMove)
aMove - the move to apply to the current capturepublic java.lang.String toString()
toString in class SpatialVectorpublic java.lang.String toFileString()
public java.lang.String listValues()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||