refactored point.h to play well with C-XSC lib