call abs on route_ref, then cos and sin will be positive as well