/external/chromium_org/ui/gfx/geometry/ |
point3_f.h | 18 class GFX_EXPORT Point3F { 20 Point3F() : x_(0), y_(0), z_(0) {} 22 Point3F(float x, float y, float z) : x_(x), y_(y), z_(z) {} 24 explicit Point3F(const PointF& point) : x_(point.x()), y_(point.y()), z_(0) {} 26 ~Point3F() {} 65 float SquaredDistanceTo(const Point3F& other) const { 85 inline bool operator==(const Point3F& lhs, const Point3F& rhs) { 89 inline bool operator!=(const Point3F& lhs, const Point3F& rhs) [all...] |
point3_unittest.cc | 12 gfx::Point3F a(1.6f, 5.1f, 3.2f); 17 gfx::Point3F expected; 18 gfx::Point3F actual; 20 { gfx::Point3F(4.7f, 1.9f, 12.5f), a + v1 }, 21 { gfx::Point3F(-1.5f, 8.3f, -6.1f), a - v1 }, 25 { gfx::Point3F(12.8f, 0.7f, 9.2f), a + v1 - v2 }, 26 { gfx::Point3F(-9.6f, 9.5f, -2.8f), a - v1 + v2 } 34 EXPECT_EQ(Point3F(4.7f, 1.9f, 12.5f).ToString(), a.ToString()); 37 EXPECT_EQ(Point3F(12.8f, 0.7f, 9.2f).ToString(), a.ToString()); 41 gfx::Point3F a(1.6f, 5.2f, 3.2f) [all...] |
point3_f.cc | 11 std::string Point3F::ToString() const { 15 Point3F operator+(const Point3F& lhs, const Vector3dF& rhs) { 19 return Point3F(x, y, z); 24 Point3F operator-(const Point3F& lhs, const Vector3dF& rhs) { 28 return Point3F(x, y, z); 33 Vector3dF operator-(const Point3F& lhs, const Point3F& rhs) {
|
box_f.cc | 28 void BoxF::ExpandTo(const Point3F& min, const Point3F& max) { 56 void BoxF::ExpandTo(const Point3F& point) { 61 ExpandTo(box.origin(), gfx::Point3F(box.right(), box.bottom(), box.front()));
|
box_f.h | 36 BoxF(const Point3F& origin, float width, float height, float depth) 97 const Point3F& origin() const { return origin_; } 98 void set_origin(const Point3F& origin) { origin_ = origin; } 103 void ExpandTo(const Point3F& point); 117 void ExpandTo(const Point3F& min, const Point3F& max); 119 Point3F origin_;
|
/external/chromium_org/cc/output/ |
bsp_tree_unittest.cc | 93 std::vector<gfx::Point3F> vertices_a; 94 vertices_a.push_back(gfx::Point3F(0.0f, 10.0f, 0.0f)); 95 vertices_a.push_back(gfx::Point3F(0.0f, 0.0f, 0.0f)); 96 vertices_a.push_back(gfx::Point3F(10.0f, 0.0f, 0.0f)); 97 vertices_a.push_back(gfx::Point3F(10.0f, 10.0f, 0.0f)); 98 std::vector<gfx::Point3F> vertices_b; 99 vertices_b.push_back(gfx::Point3F(0.0f, 10.0f, -5.0f)); 100 vertices_b.push_back(gfx::Point3F(0.0f, 0.0f, -5.0f)); 101 vertices_b.push_back(gfx::Point3F(10.0f, 0.0f, -5.0f)); 102 vertices_b.push_back(gfx::Point3F(10.0f, 10.0f, -5.0f)) [all...] |
/external/chromium_org/cc/quads/ |
draw_polygon_unittest.cc | 28 const std::vector<gfx::Point3F>& points) { 37 std::vector<gfx::Point3F> vertices_a; 38 vertices_a.push_back(gfx::Point3F(0.0f, 10.0f, 0.0f)); 39 vertices_a.push_back(gfx::Point3F(0.0f, 0.0f, 0.0f)); 40 vertices_a.push_back(gfx::Point3F(10.0f, 0.0f, 0.0f)); 41 vertices_a.push_back(gfx::Point3F(10.0f, 10.0f, 0.0f)); 42 std::vector<gfx::Point3F> vertices_b; 43 vertices_b.push_back(gfx::Point3F(5.0f, 10.0f, 5.0f)); 44 vertices_b.push_back(gfx::Point3F(5.0f, 0.0f, 15.0f)); 45 vertices_b.push_back(gfx::Point3F(5.0f, 0.0f, 15.0f)) [all...] |
draw_polygon.h | 28 const std::vector<gfx::Point3F>& in_points, 46 float SignedPointDistance(const gfx::Point3F& point) const; 55 const std::vector<gfx::Point3F>& points() const { return points_; } 68 std::vector<gfx::Point3F> points_;
|
draw_polygon.cc | 39 const std::vector<gfx::Point3F>& in_points, 58 gfx::Point3F points[8]; 90 float DrawPolygon::SignedPointDistance(const gfx::Point3F& point) const { 157 static bool LineIntersectPlane(const gfx::Point3F& line_start, 158 const gfx::Point3F& line_end, 159 const gfx::Point3F& plane_origin, 161 gfx::Point3F* intersection, 209 gfx::Point3F new_normal(normal_.x(), normal_.y(), normal_.z()); 246 gfx::Point3F intersections[2]; 247 std::vector<gfx::Point3F> out_points[2] [all...] |
/external/chromium_org/third_party/WebKit/public/platform/ |
WebFloatPoint3D.h | 59 WebFloatPoint3D(const gfx::Point3F& p) 66 WebFloatPoint3D& operator=(const gfx::Point3F& p) 73 operator gfx::Point3F() const 75 return gfx::Point3F(x, y, z);
|
/external/chromium_org/ui/gfx/ |
transform_util_unittest.cc | 142 Point3F point; 144 point = Point3F(viewport.origin()); 146 EXPECT_EQ(Point3F(31.f, 20.f, 10.f), point) << "Transformed origin"; 148 point = Point3F(viewport.top_right()); 150 EXPECT_EQ(Point3F(31.f, 1940.f, 10.f), point) << "Transformed top-right"; 152 point = Point3F(viewport.bottom_left()); 154 EXPECT_EQ(Point3F(-3569.f, 20.f, 10.f), point) << "Transformed bottom-left"; 156 point = Point3F(viewport.bottom_right()); 158 EXPECT_EQ(Point3F(-3569.f, 1940.f, 10.f), point)
|
interpolated_transform.h | 146 InterpolatedScale(const gfx::Point3F& start_scale, 147 const gfx::Point3F& end_scale); 148 InterpolatedScale(const gfx::Point3F& start_scale, 149 const gfx::Point3F& end_scale, 158 const gfx::Point3F start_scale_; 159 const gfx::Point3F end_scale_;
|
transform.h | 21 class Point3F; 190 void TransformPoint(Point3F* point) const; 197 bool TransformPointReverse(Point3F* point) const; 258 Point3F* point) const;
|
interpolated_transform.cc | 200 start_scale_(gfx::Point3F(start_scale, start_scale, start_scale)), 201 end_scale_(gfx::Point3F(end_scale, end_scale, end_scale)) { 207 start_scale_(gfx::Point3F(start_scale, start_scale, start_scale)), 208 end_scale_(gfx::Point3F(end_scale, end_scale, end_scale)) { 211 InterpolatedScale::InterpolatedScale(const gfx::Point3F& start_scale, 212 const gfx::Point3F& end_scale) 218 InterpolatedScale::InterpolatedScale(const gfx::Point3F& start_scale, 219 const gfx::Point3F& end_scale,
|
interpolated_transform_unittest.cc | 40 ui::InterpolatedScale interpolated_scale(gfx::Point3F(0, 0, 0), 41 gfx::Point3F(100, 100, 100)); 43 gfx::Point3F(0, 0, 0), gfx::Point3F(100, 100, 100), 100, 200); 95 new ui::InterpolatedScale(gfx::Point3F(1, 1, 1), gfx::Point3F(2, 2, 2))); 187 new ui::InterpolatedScale(gfx::Point3F(1, 1, 1), 188 gfx::Point3F(scale_x, scale_y, 1)));
|
/external/chromium_org/cc/layers/ |
video_layer_impl_unittest.cc | 122 gfx::Point3F p1(0, impl.quad_list().front()->rect.height(), 0); 123 gfx::Point3F p2(impl.quad_list().front()->rect.width(), 0, 0); 126 EXPECT_EQ(gfx::Point3F(0, 50, 0), p1); 127 EXPECT_EQ(gfx::Point3F(100, 0, 0), p2); 158 gfx::Point3F p1(0, impl.quad_list().front()->rect.height(), 0); 159 gfx::Point3F p2(impl.quad_list().front()->rect.width(), 0, 0); 162 EXPECT_EQ(gfx::Point3F(0, 0, 0), p1); 163 EXPECT_EQ(gfx::Point3F(100, 50, 0), p2); 194 gfx::Point3F p1(0, impl.quad_list().front()->rect.height(), 0); 195 gfx::Point3F p2(impl.quad_list().front()->rect.width(), 0, 0) [all...] |
layer_perftest.cc | 79 test_layer->SetTransformOrigin(gfx::Point3F(0.f, 0.f, transform_origin_z));
|
/external/chromium_org/cc/base/ |
math_util.h | 60 gfx::Point3F CartesianPoint3d() const { 62 return gfx::Point3F(x(), y(), z()); 68 return gfx::Point3F(x() * inv_w, y() * inv_w, z() * inv_w); 135 gfx::Point3F clipped_quad[8], 153 gfx::Point3F* p, 158 static gfx::Point3F MapPoint(const gfx::Transform&, 159 const gfx::Point3F&, 169 static gfx::Point3F ProjectPoint3D(const gfx::Transform& transform, 209 static void AddToTracedValue(const gfx::Point3F&,
|
math_util.cc | 56 const gfx::Point3F& p) { 114 static inline void AddVertexToClippedQuad3d(const gfx::Point3F& new_vertex, 115 gfx::Point3F clipped_quad[8], 230 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p1())); 232 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p2())); 234 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p3())); 236 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p4())); 296 gfx::Point3F clipped_quad[8], 299 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p1())); 301 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p2())) [all...] |
/external/chromium_org/cc/test/ |
layer_tree_host_common_test.h | 17 class Point3F; 38 const gfx::Point3F& transform_origin, 53 const gfx::Point3F& transform_origin, 61 const gfx::Point3F& transform_origin,
|
layer_tree_host_common_test.cc | 25 const gfx::Point3F& transform_origin, 42 const gfx::Point3F& transform_origin,
|
/external/chromium_org/cc/trees/ |
layer_tree_host_common_unittest.cc | 94 gfx::Point3F(), 101 gfx::Point3F(), 108 gfx::Point3F(), 138 gfx::Point3F(), 145 gfx::Point3F(), 156 gfx::Point3F(), 178 gfx::Point3F(), 194 gfx::Point3F(), 208 gfx::Point3F(2.5f, 3.0f, 0.f), 224 gfx::Point3F(2.5f, 3.0f, 0.f) [all...] |
layer_sorter.cc | 226 gfx::Point3F c1 = 227 MathUtil::MapPoint(draw_transform, gfx::Point3F(0.f, 0.f, 0.f), &clipped); 228 gfx::Point3F c2 = 229 MathUtil::MapPoint(draw_transform, gfx::Point3F(0.f, 1.f, 0.f), &clipped); 230 gfx::Point3F c3 = 231 MathUtil::MapPoint(draw_transform, gfx::Point3F(1.f, 0.f, 0.f), &clipped); 248 gfx::Vector3dF w = gfx::Point3F(p) - transform_origin;
|
layer_sorter.h | 48 gfx::Point3F transform_origin;
|
/external/chromium_org/cc/blink/ |
web_layer_impl_fixed_bounds_unittest.cc | 32 gfx::Point3F TransformPoint(const gfx::Transform& transform, 33 const gfx::Point3F& point) { 34 gfx::Point3F result = point; 50 gfx::Point3F original_point(10, 20, 1); 51 gfx::Point3F scaled_point(
|