public class Capture extends SpatialVector implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
java.util.Date |
itsTime |
dX, dY, dZ
Constructor and Description |
---|
Capture()
empty constructor for the Capture class
|
Capture(double x,
double y)
constructor for the Capture class with coordinates provided
|
Capture(double x,
double y,
java.util.Date aTimeRef)
standard constructor for the 3D Capture class with coordinates and time provided
|
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(double x,
double y,
double z,
long aTimeRefmSecs)
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
|
Capture(SpatialVector aLocation,
long timeRef)
constructor for the Capture class with coordinates and time provided
|
Modifier and Type | Method and Description |
---|---|
Capture |
applyMove(MoveVector aMove)
Returns the coordinates of this Capture after a Move has been applied to it
|
boolean |
equals(Capture v)
Tests whether or not two Captures contain the same values
|
long |
getMilliSecsBetween(Capture otherVec)
returns the difference in timestamps for this and another vector in milliseconds, the other vector
can be either earlier or later.
|
double |
getSecsBetween(Capture otherVec)
returns the difference in timestamps for this and another capture in seconds, the other capture
can be either earlier or later.
|
double |
getSpeed(Capture otherCapture)
returns the speed of travel between this and another capture as distance/second
|
long |
getTimeMilliSecs()
returns the timestamp for this capture
|
java.util.Date |
getTimeRef()
returns the timestamp for this capture
|
float |
getTimeSecs()
returns the timestamp for this capture
|
java.lang.String |
getTimeString()
returns the timestamp for this capture as a string
|
java.lang.String |
getTimeString(java.text.SimpleDateFormat sdf)
returns the timestamp for this capture as a string
|
void |
setTimeMilliSecs(long aTimeRef)
sets the timestamp for this capture
|
void |
setTimeRef(java.util.Date aTimeRef)
sets the timestamp for this capture
|
void |
setTimeSecs(long aTimeRef)
sets the timestamp for this capture
|
java.lang.String |
toString()
Returns a string representation of the vector.
|
applyVector, applyVector, checkLatLong, clone, copy, cross, dot, equals, getCircleLineIntersections, getCircleLineIntersections, getCircleLinesegmentIntersections, getCircleLinesegmentIntersections, getConnect, getDistanceToLinesegment, getDistanceToLinesegment, getEuclidianDistance, getLength, getLengthSquared, getManhattanDistance, getManhattanLength, getPolarVector, getScaledPoint, getSpatialVector, getSquaredEuclidianDistance, getStraightnessIndex, getVolume, getX, getXY, getXYDeg, getXYDeg, getXYRad, getXYRad, getXZDeg, getXZDeg, getXZRad, getXZRad, getY, getZ, isLatLong, list, listValues, minus, negate, negateX, negateY, negateZ, plus, remapLatLongToDistanceCoords, reverseDirection, rotate, rotate, rotateXY, rotateXZ, scale, setConnect, setLatLong, setLength, setX, setY, setZ, subtract, times, toFileString, toPoint, toPolarVector, toSpatialVector, unitLength
public Capture()
public Capture(double x, double y, double z, long aTimeRefmSecs)
x
- the x coordinate for this capturey
- the y coordinate for this capturez
- the z coordinate for this captureaTimeRefmSecs
- the time stamp for this capturepublic Capture(double x, double y, java.util.Date aTimeRef)
x
- the x coordinate for this capturey
- the y coordinate for this captureaTimeRef
- the time stamp for this capturepublic 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(double x, double y)
x
- the x coordinate for this capturey
- the y coordinate for this capturepublic Capture(SpatialVector aLocation)
aLocation
- the spatial vector for this capturepublic Capture(SpatialVector aLocation, java.util.Date aTimeRef)
aLocation
- the spatial vector for this captureaTimeRef
- the timestamp for this capturepublic Capture(SpatialVector aLocation, long timeRef)
aLocation
- the spatial vector for this capturetimeRef
- the timestamp for this capturepublic 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 double getSpeed(Capture otherCapture)
otherCapture
- the other capturepublic void setTimeRef(java.util.Date aTimeRef)
aTimeRef
- the time stamp for the capturepublic void setTimeMilliSecs(long aTimeRef)
aTimeRef
- the time stamp for the capture in millisecondspublic void setTimeSecs(long aTimeRef)
aTimeRef
- the time stamp for the capture in secondspublic java.util.Date getTimeRef()
public long getTimeMilliSecs()
public float getTimeSecs()
public java.lang.String getTimeString()
public java.lang.String getTimeString(java.text.SimpleDateFormat sdf)
public double getSecsBetween(Capture otherVec)
otherVec
- the other vectorpublic long getMilliSecsBetween(Capture otherVec)
otherVec
- the other vectorpublic Capture applyMove(MoveVector aMove)
aMove
- the move to apply to the current capturepublic boolean equals(Capture v)
v
- another Capturepublic java.lang.String toString()
toString
in class SpatialVector
RH, 2017