Added getEntities() and fix for negative angle handling