danfis / libccd

Library for collision detection between two convex shapes
Other
478 stars 108 forks source link

rename ccd_pt_el_t.dist to `dist_squared` #43

Open hongkai-dai opened 6 years ago

hongkai-dai commented 6 years ago

The dist field in ccd_pt_el_t https://github.com/danfis/libccd/blob/master/src/polytope.h#L37 is actually the squared distance. To avoid confusion, would it be better to rename this variable as dist_squared?