public class UserAngleMapper
extends java.lang.Object
| Constructor and Description |
|---|
UserAngleMapper(Building building)
Constructor.
|
UserAngleMapper(RectCoordinates northPoint)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAngleToNextWaypoint(RectCoordinates userLocation,
double heading,
RectCoordinates nextNode)
Calculates the angle between the direction the user is facing and the
next waypoint
|
public UserAngleMapper(Building building)
building - Building the user is currently inpublic UserAngleMapper(RectCoordinates northPoint)
northPoint - Vector pointing northpublic float getAngleToNextWaypoint(RectCoordinates userLocation,
double heading,
RectCoordinates nextNode)
userLocation - Current location of the userheading - Heading measured by the devicenextNode - Next node in the path