They are from a utility class given by Programming Game AI by Examples of Mat Buckland