|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJavaGrinders.spatial.SpatialVector
JavaGrinders.spatial.Capture
JavaGrinders.spatial.MoveVector
public class MoveVector
characterizes a single move from a start capture at one time to an end capture at another time. A variety of descriptives can be obtained for the move.
| Field Summary | |
|---|---|
SpatialVector |
itsPreviousMoveVector
|
| Constructor Summary | |
|---|---|
MoveVector()
Empty constructor for the MoveVector class with start at 0 and end capture provided |
|
MoveVector(Capture startCapture,
Capture endCapture)
Standard constructor for the MoveVector class with start and end captures provided, no previous move is available |
|
MoveVector(Capture startCapture,
Capture endCapture,
SpatialVector prevMove)
Standard constructor for the MoveVector class with start and end captures, and pevious movement angle provided |
|
MoveVector(SpatialVector startPoint,
SpatialVector endPoint)
Standard constructor for the MoveVector class with start and end captures provided |
|
| Method Summary | |
|---|---|
double |
getAngle()
Returns the angle of the move |
Capture |
getEndCapture()
Returns the end capture of the move |
long |
getEndTime()
Returns the end capture of the move |
Capture |
getInterpolatedCaptureAtTime(long time)
Returns the interpolated capture of the move |
MoveVector |
getRelMoveVector()
Returns the difference vector of the move relative to the previous heading direction |
double |
getSpeed()
Returns the speed for the move |
Capture |
getStartCapture()
Returns the start capture of the move |
long |
getStartTime()
Returns the start capture of the move |
long |
getTimeBetweenCaptures()
Returns the time the move took |
double |
setX(double dNewX)
sets x component |
double |
setY(double dNewY)
sets y component |
double |
setZ(double dNewZ)
sets z component |
java.lang.String |
toString()
Returns the move as a string |
| Methods inherited from class JavaGrinders.spatial.Capture |
|---|
applyMove, getSpeed, getTimeBetweenCaptures, getTimeMilliSecs, getTimeRef, getTimeSecs, getTimeString, listValues, setTimeRef, toFileString, toSpatialVector |
| 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, subtract, times, toPoint, toPolarVector, unitLength |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public SpatialVector itsPreviousMoveVector
| Constructor Detail |
|---|
public MoveVector(Capture startCapture,
Capture endCapture,
SpatialVector prevMove)
startCapture - the move starts at this locationendCapture - the move ends at this locationprevMove - the direction of the previous move
public MoveVector(Capture startCapture,
Capture endCapture)
startCapture - the move starts at this locationendCapture - the move ends at this location
public MoveVector(SpatialVector startPoint,
SpatialVector endPoint)
startPoint - the move starts at this locationendPoint - the move ends at this locationpublic MoveVector()
| Method Detail |
|---|
public Capture getStartCapture()
public Capture getEndCapture()
public Capture getInterpolatedCaptureAtTime(long time)
throws java.lang.Exception
time - the time to use
java.lang.Exceptionpublic double setX(double dNewX)
setX in class SpatialVectordNewX - move the end capture of the move for the given xpublic double setY(double dNewY)
setY in class SpatialVectordNewY - move the end capture of the move for the given ypublic double setZ(double dNewZ)
setZ in class SpatialVectordNewZ - move the end capture of the move for the given zpublic MoveVector getRelMoveVector()
public long getStartTime()
public long getEndTime()
public long getTimeBetweenCaptures()
public double getSpeed()
public double getAngle()
public java.lang.String toString()
toString in class Capture
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||