class NGeometry {

	public static ETeamColor getTeamOfClosestGoalLine(final IVector2 pos)
	{
		ILineSegment blueGoalLine = NGeometry.getGoal(ETeamColor.BLUE).getGoalLine();
		ILineSegment yellowGoalLine = NGeometry.getGoal(ETeamColor.YELLOW).getGoalLine();
		
		if (blueGoalLine.distanceTo(pos) < yellowGoalLine.distanceTo(pos))
		{
			return ETeamColor.BLUE;
		}
		return ETeamColor.YELLOW;
	}

	private  NGeometry();

}