Fix `point_on_surface` for integral coordinates

Vector calculation should preserve precision in the calculation of extreme points to handle the case where `base_diff / diff` would be fractional and rounded to zero under integer arithmetic.