Added Utility Functions for Getting Light Direction

Added functions for getting segment of track based on distance, and
started writing function to get light direction based on distance.