bool GiMouseHelper::onMouseMove(float x, float y, bool ldown, bool) { bool ret = false; if (ldown && _ldown) { if (!_moved && _hypotf(x - _startX, y - _startY) > 5.f) { _moved = _coreView->onGesture(_view, kGiGesturePan, kGiGestureBegan, _startX, _startY); } if (_moved) { ret = _coreView->onGesture(_view, kGiGesturePan, kGiGestureMoved, x, y); } } return ret; }
static inline float hypot(float x, float y) throw() { return _hypotf(x, y); }
inline float do_hypot(const Float& v1,const Float& v2, mpl::false_) { mpl::bool_<(sizeof(hypotf_impl::has_hypot(_hypotf(v1, v2)))==sizeof(hypotf_impl::yes))> condition; return hypotf_impl::do_hypot_(v1,v2, condition); }