public static class BasicVehicle.SteeringMovement extends BasicVehicle.NonAccelMovement
heading, position, spec, velocity| Constructor and Description |
|---|
BasicVehicle.SteeringMovement(VehicleSpec spec,
Point2D position,
double heading,
double velocity,
double steeringAngle)
Create a steering movement.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getSteeringAngle()
Get the steering angle.
|
void |
move(double currentTime,
double timeStep)
Move the vehicle while holding all vehicle properties constant.
|
void |
setSteeringAngleWithBound(double steeringAngle)
Set the steering angle with respect to the physical limit of the vehicle.
|
String |
toString() |
getHeading, getPosition, getVehicleSpec, getVelocity, setVelocityWithBoundpublic BasicVehicle.SteeringMovement(VehicleSpec spec, Point2D position, double heading, double velocity, double steeringAngle)
spec - the vehicle specificationposition - the positionheading - the headingvelocity - the velocitysteeringAngle - the steering anglepublic double getSteeringAngle()
public void setSteeringAngleWithBound(double steeringAngle)
steeringAngle - the steering anglepublic void move(double currentTime,
double timeStep)
timeStep - the length of time for which to move the VehiclecurrentTime - the current timepublic String toString()
toString in class BasicVehicle.NonAccelMovementCopyright © 2013. All rights reserved.