added isLeaf(), isInView(), and distanceToCamera() helper methods