com.metsci.glimpse.util.geo.projection
Class KinematicVector2d
java.lang.Object
com.metsci.glimpse.util.geo.projection.KinematicVector2d
public final class KinematicVector2d
- extends java.lang.Object
Represents kinematic state (position and velocity) within a two coordinate projection of the
surface of the Earth (GeoProjection). The projection itself is not identified within instances
of this class. Immutable.
- Author:
- moskowitz
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
KinematicVector2d
public KinematicVector2d(Vector2d pos,
Vector2d vel)
getPosition
public Vector2d getPosition()
getVelocity
public Vector2d getVelocity()
timeUpdatedConstantVelocity
public KinematicVector2d timeUpdatedConstantVelocity(double deltaT)
- Returns the KinematicVector2d produced by time updating with constant velocity motion for for
the given amount of time forward.
- Parameters:
deltaT
- amount of time forward
- Returns:
- new kinematic vector
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
format
public java.lang.String format(java.lang.String coordFormat)
- Get formatted String representation.
- Parameters:
coordFormat
- format applied to each coordinate (as in String.format)
- Returns:
- formatted string with comma separated coordinates
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2012 Metron, Inc.. All Rights Reserved.