Home
last modified time | relevance | path

Searched refs:FloatPoint (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DFloatPoint.h52 class PLATFORM_EXPORT FloatPoint {
54 FloatPoint() : m_x(0), m_y(0) { } in FloatPoint() function
55 FloatPoint(float x, float y) : m_x(x), m_y(y) { } in FloatPoint() function
56 FloatPoint(const IntPoint&);
57 FloatPoint(const LayoutPoint&);
58 explicit FloatPoint(const FloatSize& size) : m_x(size.width()), m_y(size.height()) { } in FloatPoint() function
60 static FloatPoint zero() { return FloatPoint(); } in zero()
62 static FloatPoint narrowPrecision(double x, double y);
96 void moveBy(const FloatPoint& a) in moveBy()
109 float dot(const FloatPoint& a) const in dot()
[all …]
DFloatPolygonTest.cpp43 … OwnPtr<Vector<FloatPoint> > vertices = adoptPtr(new Vector<FloatPoint>(coordinatesLength / 2)); in FloatPolygonTestValue()
45 (*vertices)[i / 2] = FloatPoint(coordinates[i], coordinates[i + 1]); in FloatPolygonTestValue()
96 EXPECT_EQ(FloatPoint(200, 100), triangle.vertexAt(0)); in TEST()
97 EXPECT_EQ(FloatPoint(200, 200), triangle.vertexAt(1)); in TEST()
98 EXPECT_EQ(FloatPoint(100, 200), triangle.vertexAt(2)); in TEST()
101 EXPECT_EQ(FloatPoint(200, 100), triangle.edgeAt(0).vertex1()); in TEST()
102 EXPECT_EQ(FloatPoint(200, 200), triangle.edgeAt(0).vertex2()); in TEST()
103 EXPECT_EQ(FloatPoint(200, 200), triangle.edgeAt(1).vertex1()); in TEST()
104 EXPECT_EQ(FloatPoint(100, 200), triangle.edgeAt(1).vertex2()); in TEST()
105 EXPECT_EQ(FloatPoint(100, 200), triangle.edgeAt(2).vertex1()); in TEST()
[all …]
DFloatPoint.cpp45 FloatPoint::FloatPoint(const IntPoint& p) : m_x(p.x()), m_y(p.y()) in FloatPoint() function in blink::FloatPoint
49 FloatPoint::FloatPoint(const LayoutPoint& p) in FloatPoint() function in blink::FloatPoint
55 void FloatPoint::normalize() in normalize()
65 float FloatPoint::slopeAngleRadians() const in slopeAngleRadians()
70 float FloatPoint::length() const in length()
75 void FloatPoint::move(const LayoutSize& size) in move()
81 void FloatPoint::moveBy(const LayoutPoint& point) in moveBy()
87 SkPoint FloatPoint::data() const in data()
93 FloatPoint FloatPoint::narrowPrecision(double x, double y) in narrowPrecision()
95 return FloatPoint(narrowPrecisionToFloat(x), narrowPrecisionToFloat(y)); in narrowPrecision()
[all …]
DFloatQuad.h47 … FloatQuad(const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& p3, const FloatPoint& p4) in FloatQuad()
63 FloatPoint p1() const { return m_p1; } in p1()
64 FloatPoint p2() const { return m_p2; } in p2()
65 FloatPoint p3() const { return m_p3; } in p3()
66 FloatPoint p4() const { return m_p4; } in p4()
68 void setP1(const FloatPoint& p) { m_p1 = p; } in setP1()
69 void setP2(const FloatPoint& p) { m_p2 = p; } in setP2()
70 void setP3(const FloatPoint& p) { m_p3 = p; } in setP3()
71 void setP4(const FloatPoint& p) { m_p4 = p; } in setP4()
84 bool containsPoint(const FloatPoint&) const;
[all …]
DFloatRect.h55 FloatRect(const FloatPoint& location, const FloatSize& size) in FloatRect()
58 : m_location(FloatPoint(x, y)), m_size(FloatSize(width, height)) { } in FloatRect()
65 FloatPoint location() const { return m_location; } in location()
68 void setLocation(const FloatPoint& location) { m_location = location; } in setLocation()
87 FloatPoint center() const { return FloatPoint(x() + width() / 2, y() + height() / 2); } in center()
90 void moveBy(const FloatPoint& delta) { m_location.move(delta.x(), delta.y()); } in moveBy()
121 FloatPoint minXMinYCorner() const { return m_location; } // typically topLeft in minXMinYCorner()
122FloatPoint maxXMinYCorner() const { return FloatPoint(m_location.x() + m_size.width(), m_location.… in maxXMinYCorner()
123FloatPoint minXMaxYCorner() const { return FloatPoint(m_location.x(), m_location.y() + m_size.heig… in minXMaxYCorner()
124FloatPoint maxXMaxYCorner() const { return FloatPoint(m_location.x() + m_size.width(), m_location.… in maxXMaxYCorner()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/paint/
DDetailsMarkerPainter.cpp40 static Path createPath(const FloatPoint* path) in createPath()
43 result.moveTo(FloatPoint(path[0].x(), path[0].y())); in createPath()
45 result.addLineTo(FloatPoint(path[i].x(), path[i].y())); in createPath()
51FloatPoint points[4] = { FloatPoint(0.0f, 0.07f), FloatPoint(0.5f, 0.93f), FloatPoint(1.0f, 0.07f)… in createDownArrowPath()
57FloatPoint points[4] = { FloatPoint(0.0f, 0.93f), FloatPoint(0.5f, 0.07f), FloatPoint(1.0f, 0.93f)… in createUpArrowPath()
63FloatPoint points[4] = { FloatPoint(1.0f, 0.0f), FloatPoint(0.14f, 0.5f), FloatPoint(1.0f, 1.0f), in createLeftArrowPath()
69FloatPoint points[4] = { FloatPoint(0.0f, 0.0f), FloatPoint(0.86f, 0.5f), FloatPoint(0.0f, 1.0f), in createRightArrowPath()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DPathTraversalState.cpp28 static inline FloatPoint midPoint(const FloatPoint& first, const FloatPoint& second) in midPoint()
30 return FloatPoint((first.x() + second.x()) / 2.0f, (first.y() + second.y()) / 2.0f); in midPoint()
33 static inline float distanceLine(const FloatPoint& start, const FloatPoint& end) in distanceLine()
40 QuadraticBezier(const FloatPoint& s, const FloatPoint& c, const FloatPoint& e) in QuadraticBezier()
63 FloatPoint leftControlToRightControl = midPoint(left.control, right.control); in split()
73 FloatPoint start;
74 FloatPoint control;
75 FloatPoint end;
81 … CubicBezier(const FloatPoint& s, const FloatPoint& c1, const FloatPoint& c2, const FloatPoint& e) in CubicBezier()
102 FloatPoint startToControl1 = midPoint(control1, control2); in split()
[all …]
DPath.h45 class FloatPoint; variable
63 FloatPoint* points;
78 bool contains(const FloatPoint&, WindRule = RULE_NONZERO) const;
79 bool strokeContains(const FloatPoint&, const StrokeData&) const;
84 FloatPoint pointAtLength(float length, bool& ok) const;
86 bool pointAndNormalAtLength(float length, FloatPoint&, float&) const;
99 bool pointAndNormalAtLength(float length, FloatPoint&, float&);
112 FloatPoint currentPoint() const;
117 void moveTo(const FloatPoint&);
118 void addLineTo(const FloatPoint&);
[all …]
DPath.cpp69 bool Path::contains(const FloatPoint& point, WindRule rule) const in contains()
74 bool Path::strokeContains(const FloatPoint& point, const StrokeData& strokeData) const in strokeContains()
99 static FloatPoint* convertPathPoints(FloatPoint dst[], const SkPoint src[], int count) in convertPathPoints()
113 FloatPoint pathPoints[3]; in apply()
163 FloatPoint Path::pointAtLength(float length, bool& ok) const in pointAtLength()
165 FloatPoint point; in pointAtLength()
173 FloatPoint point; in normalAngleAtLength()
179 static bool calculatePointAndNormalOnPath(SkPathMeasure& measure, SkScalar length, FloatPoint& poin… in calculatePointAndNormalOnPath()
189 point = FloatPoint(SkScalarToFloat(position.fX), SkScalarToFloat(position.fY)); in calculatePointAndNormalOnPath()
200 bool Path::pointAndNormalAtLength(float length, FloatPoint& point, float& normal) const in pointAndNormalAtLength()
[all …]
DPathTraversalState.h46 float moveTo(const FloatPoint&);
47 float lineTo(const FloatPoint&);
48 float quadraticBezierTo(const FloatPoint& newControl, const FloatPoint& newEnd);
49 …float cubicBezierTo(const FloatPoint& newControl1, const FloatPoint& newControl2, const FloatPoint
57 FloatPoint m_current;
58 FloatPoint m_start;
65 FloatPoint m_previous;
DGradient.h48 static PassRefPtr<Gradient> create(const FloatPoint& p0, const FloatPoint& p1) in create()
52 …static PassRefPtr<Gradient> create(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1,…
73 const FloatPoint& p0() const { return m_p0; } in p0()
74 const FloatPoint& p1() const { return m_p1; } in p1()
76 void setP0(const FloatPoint& p) in setP0()
84 void setP1(const FloatPoint& p) in setP1()
123 Gradient(const FloatPoint& p0, const FloatPoint& p1);
124 Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio);
130 FloatPoint m_p0;
131 FloatPoint m_p1;
/external/chromium_org/third_party/WebKit/Source/web/tests/
DPinchViewportTest.cpp241 pinchViewport.setLocation(FloatPoint(0, 300)); in TEST_F()
242 EXPECT_FLOAT_POINT_EQ(FloatPoint(0, 300), pinchViewport.location()); in TEST_F()
254 EXPECT_FLOAT_POINT_EQ(FloatPoint(0, 75), pinchViewport.location()); in TEST_F()
301 pinchViewport.setLocation(FloatPoint(150, 0)); in TEST_F()
302 EXPECT_FLOAT_POINT_EQ(FloatPoint(150, 0), pinchViewport.location()); in TEST_F()
313 EXPECT_FLOAT_POINT_EQ(FloatPoint(150, 0), pinchViewport.location()); in TEST_F()
361 FloatRect expectedRect(FloatPoint(0, 0), size); in TEST_F()
369 expectedRect.setLocation(FloatPoint(5, 7)); in TEST_F()
373 expectedRect.setLocation(FloatPoint(200, 100)); in TEST_F()
378 FloatPoint oldLocation = expectedRect.location(); in TEST_F()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/svg/
DSVGPathSource.h27 class FloatPoint; variable
40 virtual bool parseMoveToSegment(FloatPoint&) = 0;
41 virtual bool parseLineToSegment(FloatPoint&) = 0;
44 virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&) = 0;
45 virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&) = 0;
46 virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&) = 0;
47 virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&) = 0;
48 virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&) = 0;
DSVGPathSegListSource.cpp60 bool SVGPathSegListSource::parseMoveToSegment(FloatPoint& targetPoint) in parseMoveToSegment()
65 targetPoint = FloatPoint(moveTo->x(), moveTo->y()); in parseMoveToSegment()
69 bool SVGPathSegListSource::parseLineToSegment(FloatPoint& targetPoint) in parseLineToSegment()
74 targetPoint = FloatPoint(lineTo->x(), lineTo->y()); in parseLineToSegment()
96 …ool SVGPathSegListSource::parseCurveToCubicSegment(FloatPoint& point1, FloatPoint& point2, FloatPo… in parseCurveToCubicSegment()
101 point1 = FloatPoint(cubic->x1(), cubic->y1()); in parseCurveToCubicSegment()
102 point2 = FloatPoint(cubic->x2(), cubic->y2()); in parseCurveToCubicSegment()
103 targetPoint = FloatPoint(cubic->x(), cubic->y()); in parseCurveToCubicSegment()
107 bool SVGPathSegListSource::parseCurveToCubicSmoothSegment(FloatPoint& point2, FloatPoint& targetPoi… in parseCurveToCubicSmoothSegment()
112 point2 = FloatPoint(cubicSmooth->x2(), cubicSmooth->y2()); in parseCurveToCubicSmoothSegment()
[all …]
DSVGPathByteStreamSource.h40 virtual bool parseMoveToSegment(FloatPoint&) OVERRIDE;
41 virtual bool parseLineToSegment(FloatPoint&) OVERRIDE;
44 virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&) OVERRIDE;
45 virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&) OVERRIDE;
46 virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&) OVERRIDE;
47 virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&) OVERRIDE;
48 virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&) OVERRIDE;
67 FloatPoint readFloatPoint() in readFloatPoint()
71 return FloatPoint(x, y); in readFloatPoint()
DSVGPathBuilder.h46 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) OVERRIDE;
47 virtual void lineTo(const FloatPoint&, PathCoordinateMode) OVERRIDE;
48 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
54 …virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE… in curveToCubicSmooth() argument
55 …virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE {… in curveToQuadratic() argument
56 …virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) OVERRIDE { ASSERT_NOT_R… in curveToQuadraticSmooth() argument
57 …virtual void arcTo(float, float, float, bool, bool, const FloatPoint&, PathCoordinateMode) OVERRID… in arcTo() argument
60 FloatPoint m_current;
DSVGPathTraversalStateBuilder.h37 FloatPoint currentPoint();
47 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) OVERRIDE;
48 virtual void lineTo(const FloatPoint&, PathCoordinateMode) OVERRIDE;
49 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
56 …virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE… in curveToCubicSmooth() argument
57 …virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE {… in curveToQuadratic() argument
58 …virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) OVERRIDE { ASSERT_NOT_R… in curveToQuadraticSmooth() argument
59 …virtual void arcTo(float, float, float, bool, bool, const FloatPoint&, PathCoordinateMode) OVERRID… in arcTo() argument
DSVGPathConsumer.h52 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) = 0;
53 virtual void lineTo(const FloatPoint&, PathCoordinateMode) = 0;
54 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
60 virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) = 0;
61 virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) = 0;
62 virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) = 0;
63 …virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, Path…
DSVGPathSegListSource.h42 virtual bool parseMoveToSegment(FloatPoint&) OVERRIDE;
43 virtual bool parseLineToSegment(FloatPoint&) OVERRIDE;
46 virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&) OVERRIDE;
47 virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&) OVERRIDE;
48 virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&) OVERRIDE;
49 virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&) OVERRIDE;
50 virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&) OVERRIDE;
DSVGPathStringBuilder.h39 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) OVERRIDE;
40 virtual void lineTo(const FloatPoint&, PathCoordinateMode) OVERRIDE;
41 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
47 …virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE;
48 … virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE;
49 virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) OVERRIDE;
50 …virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, Path…
DSVGPathByteStreamBuilder.h43 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) OVERRIDE;
44 virtual void lineTo(const FloatPoint&, PathCoordinateMode) OVERRIDE;
45 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
51 …virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE;
52 … virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE;
53 virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) OVERRIDE;
54 …virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, Path…
DSVGPathBlender.cpp41 static inline FloatPoint blendFloatPoint(const FloatPoint& a, const FloatPoint& b, float progress) in blendFloatPoint()
43 return FloatPoint(blend(a.x(), b.x(), progress), blend(a.y(), b.y(), progress)); in blendFloatPoint()
70 FloatPoint SVGPathBlender::blendAnimatedFloatPoint(const FloatPoint& fromPoint, const FloatPoint& t… in blendAnimatedFloatPoint()
74 FloatPoint repeatedToPoint = toPoint; in blendAnimatedFloatPoint()
83 FloatPoint animatedPoint = toPoint; in blendAnimatedFloatPoint()
95 FloatPoint currentPoint = blendFloatPoint(m_fromCurrentPoint, m_toCurrentPoint, m_progress); in blendAnimatedFloatPoint()
105 FloatPoint fromTargetPoint; in blendMoveToSegment()
106 FloatPoint toTargetPoint; in blendMoveToSegment()
119 FloatPoint fromTargetPoint; in blendLineToSegment()
120 FloatPoint toTargetPoint; in blendLineToSegment()
[all …]
DSVGPathStringSource.h45 virtual bool parseMoveToSegment(FloatPoint&) OVERRIDE;
46 virtual bool parseLineToSegment(FloatPoint&) OVERRIDE;
49 virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&) OVERRIDE;
50 virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&) OVERRIDE;
51 virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&) OVERRIDE;
52 virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&) OVERRIDE;
53 virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&) OVERRIDE;
DSVGPathSegListBuilder.h52 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode) OVERRIDE;
53 virtual void lineTo(const FloatPoint&, PathCoordinateMode) OVERRIDE;
54 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
60 …virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE;
61 … virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) OVERRIDE;
62 virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) OVERRIDE;
63 …virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, Path…
/external/chromium_org/ppapi/cpp/
Dpoint.h155 class FloatPoint {
158 FloatPoint() { in FloatPoint() function
171 FloatPoint(float in_x, float in_y) { in FloatPoint() function
180 FloatPoint(const PP_FloatPoint& point) { // Implicit. in FloatPoint() function
185 ~FloatPoint() { in ~FloatPoint()
238 FloatPoint operator+(const FloatPoint& other) const {
239 return FloatPoint(x() + other.x(), y() + other.y());
248 FloatPoint operator-(const FloatPoint& other) const {
249 return FloatPoint(x() - other.x(), y() - other.y());
258 FloatPoint& operator+=(const FloatPoint& other) {
[all …]

12345678910>>...14