/external/chromium_org/ui/gfx/ |
vector2d_conversions.cc | 11 Vector2d ToFlooredVector2d(const Vector2dF& vector2d) { 12 int x = ToFlooredInt(vector2d.x()); 13 int y = ToFlooredInt(vector2d.y()); 14 return Vector2d(x, y); 17 Vector2d ToCeiledVector2d(const Vector2dF& vector2d) { 18 int x = ToCeiledInt(vector2d.x()); 19 int y = ToCeiledInt(vector2d.y()); 20 return Vector2d(x, y) [all...] |
vector2d_conversions.h | 8 #include "ui/gfx/vector2d.h" 13 // Returns a Vector2d with each component from the input Vector2dF floored. 14 UI_EXPORT Vector2d ToFlooredVector2d(const Vector2dF& vector2d); 16 // Returns a Vector2d with each component from the input Vector2dF ceiled. 17 UI_EXPORT Vector2d ToCeiledVector2d(const Vector2dF& vector2d); 19 // Returns a Vector2d with each component from the input Vector2dF rounded. 20 UI_EXPORT Vector2d ToRoundedVector2d(const Vector2dF& vector2d); [all...] |
vector2d.cc | 5 #include "ui/gfx/vector2d.h" 13 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 {
|
vector2d.h | 21 class UI_EXPORT Vector2d { 23 Vector2d() : x_(0), y_(0) {} 24 Vector2d(int x, int y) : x_(x), y_(y) {} 36 void Add(const Vector2d& other); 38 void Subtract(const Vector2d& other); 40 void operator+=(const Vector2d& other) { Add(other); } 41 void operator-=(const Vector2d& other) { Subtract(other); } 43 void SetToMin(const Vector2d& other) { 48 void SetToMax(const Vector2d& other) { 69 inline bool operator==(const Vector2d& lhs, const Vector2d& rhs) [all...] |
vector2d_unittest.cc | 10 #include "ui/gfx/vector2d.h" 16 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() }, [all...] |
point.h | 11 #include "ui/gfx/vector2d.h" 25 class UI_EXPORT Point : public PointBase<Point, int, Vector2d> { 27 Point() : PointBase<Point, int, Vector2d>(0, 0) {} 28 Point(int x, int y) : PointBase<Point, int, Vector2d>(x, y) {} 64 inline Point operator+(const Point& lhs, const Vector2d& rhs) { 70 inline Point operator-(const Point& lhs, const Vector2d& rhs) { 76 inline Vector2d operator-(const Point& lhs, const Point& rhs) { 77 return Vector2d(lhs.x() - rhs.x(), lhs.y() - rhs.y()); 80 inline Point PointAtOffsetFromOrigin(const Vector2d& offset_from_origin) { 85 extern template class PointBase<Point, int, Vector2d>; [all...] |
point.cc | 15 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) {
|
rect.h | 22 #include "ui/gfx/vector2d.h" 39 : public RectBase<Rect, Point, Size, Insets, Vector2d, int> { 41 Rect() : RectBase<Rect, Point, Size, Insets, Vector2d, int>(Point()) {} 44 : RectBase<Rect, Point, Size, Insets, Vector2d, int> 48 : RectBase<Rect, Point, Size, Insets, Vector2d, int> 60 : RectBase<Rect, Point, Size, Insets, Vector2d, int>(size) {} 63 : RectBase<Rect, Point, Size, Insets, Vector2d, int>(origin, size) {} 92 UI_EXPORT Rect operator+(const Rect& lhs, const Vector2d& rhs); 93 UI_EXPORT Rect operator-(const Rect& lhs, const Vector2d& rhs); 95 inline Rect operator+(const Vector2d& lhs, const Rect& rhs) [all...] |
/cts/suite/cts/deviceTests/opengl/jni/graphics/ |
Vector2D.cpp | 14 #include "Vector2D.h" 18 Vector2D::Vector2D() : 22 Vector2D::Vector2D(float x, float y) : 26 Vector2D Vector2D::copy() { 27 Vector2D v(mX, mY); 31 void Vector2D::add(const Vector2D& v) [all...] |
Vector2D.h | 17 class Vector2D { 19 Vector2D(); 20 Vector2D(float x, float y); 21 Vector2D copy(); 23 void add(const Vector2D& v); 24 void sub(const Vector2D& v); 29 float distance(const Vector2D& v);
|
/external/eigen/unsupported/doc/examples/ |
BVH_Example.cpp | 10 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> redTree(redPoints.begin(), redPoints.end()), blueTree(bluePoints.begin(), bluePoints.end()); //co (…) [all...] |
/external/chromium_org/cc/resources/ |
resource_update.h | 12 #include "ui/gfx/vector2d.h" 26 gfx::Vector2d dest_offset); 31 gfx::Vector2d dest_offset); 41 gfx::Vector2d dest_offset;
|
image_layer_updater.cc | 19 gfx::Vector2d dest_offset, 39 gfx::Vector2d dest_offset, 47 gfx::Vector2d clipped_dest_offset = 49 gfx::Vector2d(clipped_source_rect.origin() - source_rect.origin());
|
/cts/suite/cts/deviceTests/opengl/jni/reference/scene/flocking/ |
Boid.h | 18 #include <graphics/Vector2D.h> 35 Vector2D mPosition; 36 Vector2D mVelocity; 37 Vector2D mAcceleration;
|
Boid.cpp | 24 Vector2D separation; 26 Vector2D alignment; 28 Vector2D cohesion; 37 Vector2D tmp = mPosition.copy(); 70 Vector2D desired = cohesion.copy();
|
/external/chromium_org/cc/trees/ |
layer_tree_host_unittest_scroll.cc | 36 ->SetMaxScrollOffset(gfx::Vector2d(100, 100)); 55 EXPECT_VECTOR_EQ(gfx::Vector2d(), root->ScrollDelta()); 58 root->SetMaxScrollOffset(gfx::Vector2d(100, 100)); 75 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, 83 gfx::Vector2d initial_scroll_; 84 gfx::Vector2d second_scroll_; 85 gfx::Vector2d scroll_amount_; 102 ->SetMaxScrollOffset(gfx::Vector2d(100, 100)); 127 EXPECT_VECTOR_EQ(root->ScrollDelta(), gfx::Vector2d()); 145 EXPECT_VECTOR_EQ(root->ScrollDelta(), gfx::Vector2d()); [all...] |
/external/chromium_org/cc/test/ |
pixel_test_output_surface.h | 26 void set_viewport_offset(gfx::Vector2d viewport_offset) { 32 gfx::Vector2d viewport_offset_;
|
/external/chromium_org/ui/base/dragdrop/ |
drag_utils_aura.cc | 12 #include "ui/gfx/vector2d.h" 18 const gfx::Vector2d& cursor_offset,
|
drag_utils.h | 19 class Vector2d; 42 const gfx::Vector2d& cursor_offset, 50 const gfx::Vector2d& cursor_offset,
|
/external/chromium_org/content/browser/renderer_host/ |
render_widget_host_view_mac_dictionary_helper.h | 9 #include "ui/gfx/vector2d.h" 32 void set_offset(const gfx::Vector2d& offset) { offset_ = offset; } 45 gfx::Vector2d offset_;
|
/external/chromium_org/ui/base/gtk/ |
gtk_screen_util.cc | 29 gfx::Vector2d GetWidgetScreenOffset(GtkWidget* widget) { 34 return gfx::Vector2d(0, 0); 47 return gfx::Vector2d(x, y);
|
/external/eigen/doc/ |
D07_PassingByValue.dox | 12 void my_function(Eigen::Vector2d v); 18 void my_function(const Eigen::Vector2d& v); 26 Eigen::Vector2d v;
|
/external/chromium_org/cc/layers/ |
layer_impl_unittest.cc | 96 gfx::Vector2d arbitrary_vector2d = gfx::Vector2d(111, 222); 132 EXECUTE_AND_VERIFY_SUBTREE_CHANGED(root->SetScrollDelta(gfx::Vector2d())); 183 root->SetScrollDelta(gfx::Vector2d())); 209 gfx::Vector2d arbitrary_vector2d = gfx::Vector2d(111, 222); 210 gfx::Vector2d large_vector2d = gfx::Vector2d(1000, 1000); 234 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(root->ScrollBy(gfx::Vector2d())); 235 root->SetScrollDelta(gfx::Vector2d(0, 0)) [all...] |
/external/chromium_org/content/renderer/ |
paint_aggregator_unittest.cc | 80 gfx::Vector2d delta(1, 0); 104 gfx::Vector2d delta1(1, 0); 105 gfx::Vector2d delta2(1, 0); 118 gfx::Vector2d expected_delta = delta1 + delta2; 133 gfx::Vector2d delta1(1, 0); 134 gfx::Vector2d delta2(-1, 0); 148 gfx::Vector2d delta(1, 1); 165 greg.ScrollRect(gfx::Vector2d(2, 0), scroll_rect); 189 greg.ScrollRect(gfx::Vector2d(2, 0), scroll_rect); 212 greg.ScrollRect(gfx::Vector2d(2, 0), scroll_rect) [all...] |
/external/chromium_org/cc/scheduler/ |
texture_uploader.h | 21 class Vector2d; 48 gfx::Vector2d dest_offset, 99 gfx::Vector2d dest_offset, 104 gfx::Vector2d dest_offset,
|