public final class KinematicVector2d extends Object
Constructor and Description |
---|
KinematicVector2d(Vector2d pos,
Vector2d vel) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
format(String coordFormat)
Get formatted String representation.
|
Vector2d |
getPosition() |
Vector2d |
getVelocity() |
int |
hashCode() |
KinematicVector2d |
timeUpdatedConstantVelocity(double deltaT)
Returns the KinematicVector2d produced by time updating with constant velocity motion for for
the given amount of time forward.
|
String |
toString() |
public Vector2d getPosition()
public Vector2d getVelocity()
public KinematicVector2d timeUpdatedConstantVelocity(double deltaT)
deltaT
- amount of time forwardpublic String format(String coordFormat)
coordFormat
- format applied to each coordinate (as in String.format)Copyright © 2013 Metron, Inc.. All rights reserved.