Home
last modified time | relevance | path

Searched refs:LengthSquared (Results 1 – 21 of 21) sorted by relevance

/external/chromium_org/ui/gfx/geometry/
Dvector2d.cc27 int64 Vector2d::LengthSquared() const { in LengthSquared() function in gfx::Vector2d
32 return static_cast<float>(std::sqrt(static_cast<double>(LengthSquared()))); in Length()
Dvector2d_f.cc31 double Vector2dF::LengthSquared() const { in LengthSquared() function in gfx::Vector2dF
36 return static_cast<float>(std::sqrt(LengthSquared())); in Length()
Dvector3d_f.cc51 double Vector3dF::LengthSquared() const { in LengthSquared() function in gfx::Vector3dF
57 return static_cast<float>(std::sqrt(LengthSquared())); in Length()
Dvector2d.h57 int64 LengthSquared() const;
Dvector2d_unittest.cc169 EXPECT_EQ(static_cast<float>(length_squared), vector.LengthSquared()); in TEST()
193 EXPECT_DOUBLE_EQ(length_squared, vector.LengthSquared()); in TEST()
Dvector2d_f.h53 double LengthSquared() const;
Dvector3d_f.h61 double LengthSquared() const;
Dmatrix3_unittest.cc140 EXPECT_NEAR(0, expected_eigv.LengthSquared(), 0.00001f); in TEST()
Dvector3d_unittest.cc174 EXPECT_DOUBLE_EQ(length_squared, vector.LengthSquared()); in TEST()
Dr_tree_base.cc293 return (a_center - p_center).LengthSquared() < in CompareCenterDistanceFromParent()
294 (b_center - p_center).LengthSquared(); in CompareCenterDistanceFromParent()
/external/chromium_org/content/browser/renderer_host/input/
Dtouch_handle.cc148 (touch_move_position - touch_down_position_).LengthSquared() < in WillHandleTouchEvent()
187 (position_ - fade_start_position_).LengthSquared() / kFadeDistanceSquared; in Animate()
Dtouch_selection_controller.cc130 if ((event_pos - GetStartPosition()).LengthSquared() <= in WillHandleTouchEvent()
131 (event_pos - GetEndPosition()).LengthSquared()) in WillHandleTouchEvent()
Dtouch_event_queue.cc55 return (gfx::PointF(event.touches[0].position) - anchor).LengthSquared() > in OutsideApplicationSlopRegion()
255 if ((position - touch_sequence_start_position_).LengthSquared() > in FilterEvent()
/external/chromium_org/content/renderer/input/
Dinput_handler_proxy.cc83 if (scroll_velocity.LengthSquared() < kMinBoostTouchScrollSpeedSquare) in ShouldSuppressScrollForFlingBoosting()
100 if (current_fling_velocity.LengthSquared() < kMinBoostFlingSpeedSquare) in ShouldBoostFling()
103 if (new_fling_velocity.LengthSquared() < kMinBoostFlingSpeedSquare) in ShouldBoostFling()
471 if (current_fling_velocity_.LengthSquared() < kMinBoostFlingSpeedSquare) in FilterInputEventForFlingBoosting()
/external/chromium_org/ui/events/gesture_detection/
Dgesture_touch_uma_histogram.cc33 gfx::Point(event.GetX(), event.GetY())).LengthSquared(); in RecordTouchEvent()
/external/chromium_org/ash/autoclick/
Dautoclick_controller.cc142 if (delta.LengthSquared() >= kMovementThreshold * kMovementThreshold) { in OnMouseEvent()
/external/chromium_org/ui/events/gestures/
Dgesture_recognizer_impl.cc112 float distance_squared = (point - location).LengthSquared(); in GetTargetForLocation()
/external/chromium_org/ash/touch/
Dtouch_uma.cc173 if (distance.LengthSquared() < kLongStationaryTouchDistanceSquared) { in RecordTouchEvent()
/external/chromium_org/ash/display/
Ddisplay_controller.cc536 int64 distance_squared = (center - point_in_screen).LengthSquared(); in EnsurePointerInDisplays()
/external/chromium_org/cc/base/
Dmath_util.cc687 gfx::DotProduct(source, destination) / destination.LengthSquared(); in ProjectVector()
/external/chromium_org/cc/trees/
Dlayer_tree_host_impl_unittest.cc2373 inner_viewport_scroll_layer->FixedContainerSizeDelta()).LengthSquared(), in TEST_F()