Calculate classes based on angle

Signed-off-by: mge <mge@pixum.com>