angleAndDirectionBetweenLocations

Calculates the angle and direction between 3 coordinates. A direction value larger than 0 indicates a left turn. A direction value smaller than 0 indicates a right turn. A direction value equal to 0 indicates no turn i.e. the 3 points are colinear.

Return

A HashMap with keys: ["angle", "direction"]

Parameters

locA

first coordinate

locB

second coordinate

locC

third coordinate