public class VectorWithHeading extends Vector
Constructor and Description |
---|
VectorWithHeading(Location l1,
Location l2)
Construct a vector and determine its heading.
|
Modifier and Type | Method and Description |
---|---|
float |
getHeading() |
boolean |
headingOK(float vehicleHeading,
float allowableDelta)
Returns true if heading is within allowableDelta of segment.
|
java.lang.String |
toString() |
public float getHeading()
public boolean headingOK(float vehicleHeading, float allowableDelta)
vehicleHeading
- Heading of vehicle. If Float.NaN then
method will return trueallowableDelta
-