Searched refs:Vector2d (Results 1 - 25 of 311) sorted by relevance

1234567891011>>

/external/chromium_org/ui/gfx/geometry/
H A Dvector2d_conversions.h13 // Returns a Vector2d with each component from the input Vector2dF floored.
14 GFX_EXPORT Vector2d ToFlooredVector2d(const Vector2dF& vector2d);
16 // Returns a Vector2d with each component from the input Vector2dF ceiled.
17 GFX_EXPORT Vector2d ToCeiledVector2d(const Vector2dF& vector2d);
19 // Returns a Vector2d with each component from the input Vector2dF rounded.
20 GFX_EXPORT Vector2d ToRoundedVector2d(const Vector2dF& vector2d);
H A Dvector2d.cc13 bool Vector2d::IsZero() const {
17 void Vector2d::Add(const Vector2d& other) {
22 void Vector2d::Subtract(const Vector2d& other) {
27 int64 Vector2d::LengthSquared() const {
31 float Vector2d::Length() const {
35 std::string Vector2d::ToString() const {
H A Dvector2d.h22 class GFX_EXPORT Vector2d { class in namespace:gfx
24 Vector2d() : x_(0), y_(0) {} function in class:gfx::Vector2d
25 Vector2d(int x, int y) : x_(x), y_(y) {} function in class:gfx::Vector2d
37 void Add(const Vector2d& other);
39 void Subtract(const Vector2d& other);
41 void operator+=(const Vector2d& other) { Add(other); }
42 void operator-=(const Vector2d& other) { Subtract(other); }
44 void SetToMin(const Vector2d& other) {
49 void SetToMax(const Vector2d& other) {
70 inline bool operator==(const Vector2d
[all...]
H A Dvector2d_conversions.cc11 Vector2d ToFlooredVector2d(const Vector2dF& vector2d) {
14 return Vector2d(x, y);
17 Vector2d ToCeiledVector2d(const Vector2dF& vector2d) {
20 return Vector2d(x, y);
23 Vector2d ToRoundedVector2d(const Vector2dF& vector2d) {
26 return Vector2d(x, y);
H A Dpoint.h28 class GFX_EXPORT Point : public PointBase<Point, int, Vector2d> {
30 Point() : PointBase<Point, int, Vector2d>(0, 0) {}
31 Point(int x, int y) : PointBase<Point, int, Vector2d>(x, y) {}
67 inline Point operator+(const Point& lhs, const Vector2d& rhs) {
73 inline Point operator-(const Point& lhs, const Vector2d& rhs) {
79 inline Vector2d operator-(const Point& lhs, const Point& rhs) {
80 return Vector2d(lhs.x() - rhs.x(), lhs.y() - rhs.y());
83 inline Point PointAtOffsetFromOrigin(const Vector2d& offset_from_origin) {
88 extern template class PointBase<Point, int, Vector2d>;
H A Dvector2d_unittest.cc16 Vector2d i(3, 4);
22 Vector2d int_zero(0, 0);
23 Vector2d int_nonzero(2, -2);
34 Vector2d i1(3, 5);
35 Vector2d i2(4, -1);
38 Vector2d expected;
39 Vector2d actual;
41 { Vector2d(3, 5), i1 + Vector2d() },
42 { Vector2d(
[all...]
H A Dpoint.cc15 template class PointBase<Point, int, Vector2d>;
18 Point::Point(DWORD point) : PointBase<Point, int, Vector2d>(0, 0){
25 : PointBase<Point, int, Vector2d>(point.x, point.y) {
42 : PointBase<Point, int, Vector2d>(point.x, point.y) {
H A Drect.h38 : public RectBase<Rect, Point, Size, Insets, Vector2d, int> {
40 Rect() : RectBase<Rect, Point, Size, Insets, Vector2d, int>(Point()) {}
43 : RectBase<Rect, Point, Size, Insets, Vector2d, int>
47 : RectBase<Rect, Point, Size, Insets, Vector2d, int>
57 : RectBase<Rect, Point, Size, Insets, Vector2d, int>(size) {}
60 : RectBase<Rect, Point, Size, Insets, Vector2d, int>(origin, size) {}
87 GFX_EXPORT Rect operator+(const Rect& lhs, const Vector2d& rhs);
88 GFX_EXPORT Rect operator-(const Rect& lhs, const Vector2d& rhs);
90 inline Rect operator+(const Vector2d& lhs, const Rect& rhs) {
135 extern template class RectBase<Rect, Point, Size, Insets, Vector2d, in
[all...]
/external/chromium_org/ui/wm/public/
H A Danimation_host.h12 class Vector2d;
31 const gfx::Vector2d& top_left_delta,
32 const gfx::Vector2d& bottom_right_delta) = 0;
/external/eigen/unsupported/doc/examples/
H A DBVH_Example.cpp10 Box2d bounding_box(const Vector2d &v) { return Box2d(v, v); } //compute the bounding box of a single point
20 double minimumOnVolumeObject(const Box2d &r, const Vector2d &v) { ++calls; return r.squaredExteriorDistance(v); }
21 double minimumOnObjectVolume(const Vector2d &v, const Box2d &r) { ++calls; return r.squaredExteriorDistance(v); }
22 double minimumOnObjectObject(const Vector2d &v1, const Vector2d &v2) { ++calls; return (v1 - v2).squaredNorm(); }
29 typedef std::vector<Vector2d, aligned_allocator<Vector2d> > StdVectorOfVector2d;
32 redPoints.push_back(Vector2d::Random());
33 bluePoints.push_back(Vector2d::Random());
47 KdBVH<double, 2, Vector2d> redTre
[all...]
/external/chromium_org/android_webview/browser/
H A Dbrowser_view_renderer_client.h41 virtual void ScrollContainerViewTo(gfx::Vector2d new_value) = 0;
51 virtual void UpdateScrollState(gfx::Vector2d max_scroll_offset,
58 virtual void DidOverscroll(gfx::Vector2d overscroll_delta) = 0;
/external/chromium_org/ui/base/dragdrop/
H A Ddrag_utils_aura.cc17 const gfx::Vector2d& cursor_offset,
H A Ddrag_utils.h19 class Vector2d;
40 const gfx::Vector2d& cursor_offset,
46 const gfx::Vector2d& cursor_offset,
/external/chromium_org/cc/resources/
H A Dresource_update.h23 const gfx::Vector2d& dest_offset);
32 gfx::Vector2d dest_offset;
H A Dimage_layer_updater.h26 const gfx::Vector2d& dest_offset,
43 const gfx::Vector2d& dest_offset,
H A Dimage_layer_updater.cc19 const gfx::Vector2d& dest_offset,
39 const gfx::Vector2d& dest_offset,
47 gfx::Vector2d clipped_dest_offset =
49 gfx::Vector2d(clipped_source_rect.origin() - source_rect.origin());
/external/chromium_org/content/browser/renderer_host/
H A Drender_widget_host_view_mac_dictionary_helper.h30 void set_offset(const gfx::Vector2d& offset) { offset_ = offset; }
43 gfx::Vector2d offset_;
/external/ceres-solver/internal/ceres/
H A Ddogleg_strategy.h79 typedef Eigen::Matrix<double, 2, 1, Eigen::DontAlign> Vector2d; typedef in class:ceres::internal::DoglegStrategy
92 bool FindMinimumOnTrustRegionBoundary(Vector2d* minimum) const;
94 Vector2d ComputeSubspaceStepFromRoot(double lambda) const;
95 double EvaluateSubspaceModel(const Vector2d& x) const;
158 Vector2d subspace_g_;
/external/chromium_org/cc/trees/
H A Dlayer_tree_host_client.h13 class Vector2d;
30 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
/external/chromium_org/ui/app_list/
H A Dpagination_controller.h11 class Vector2d;
39 bool OnScroll(const gfx::Vector2d& offset);
/external/chromium_org/ui/app_list/views/
H A Dapp_list_drag_and_drop_host.h12 class Vector2d;
31 const gfx::Vector2d& cursor_offset_from_center,
/external/chromium_org/chrome/browser/extensions/api/automation_internal/
H A Dautomation_util.h31 const gfx::Vector2d& location_offset);
/external/chromium_org/android_webview/native/
H A Djava_browser_view_renderer_helper.h28 const gfx::Vector2d& scroll_correction,
35 const gfx::Vector2d& scroll_correction,
/external/chromium_org/ui/gfx/
H A Dblit.h17 class Vector2d;
48 const Vector2d& offset);
/external/chromium_org/ui/views/widget/desktop_aura/
H A Dx11_desktop_window_move_client.h41 const gfx::Vector2d& drag_offset,
55 gfx::Vector2d window_offset_;

Completed in 540 milliseconds

1234567891011>>