fixed object orientation

detection of several objects at the same time
shouldn't you divide by the number of points that are valid ?