Home
last modified time | relevance | path

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

12345678910>>...12

/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DFloatPoint.h56 class PLATFORM_EXPORT FloatPoint {
58 FloatPoint() : m_x(0), m_y(0) { } in FloatPoint() function
59 FloatPoint(float x, float y) : m_x(x), m_y(y) { } in FloatPoint() function
60 FloatPoint(const IntPoint&);
61 FloatPoint(const LayoutPoint&);
62 explicit FloatPoint(const FloatSize& size) : m_x(size.width()), m_y(size.height()) { } in FloatPoint() function
64 static FloatPoint zero() { return FloatPoint(); } in zero()
66 static FloatPoint narrowPrecision(double x, double y);
100 void moveBy(const FloatPoint& a) in moveBy()
113 float dot(const FloatPoint& a) const in dot()
[all …]
DFloatPoint.cpp47 FloatPoint::FloatPoint(const IntPoint& p) : m_x(p.x()), m_y(p.y()) in FloatPoint() function in WebCore::FloatPoint
51 FloatPoint::FloatPoint(const LayoutPoint& p) : m_x(p.x()), m_y(p.y()) in FloatPoint() function in WebCore::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 FloatPoint::operator SkPoint() const in operator SkPoint()
93 FloatPoint FloatPoint::matrixTransform(const AffineTransform& transform) const in matrixTransform()
100 FloatPoint FloatPoint::matrixTransform(const TransformationMatrix& transform) const in matrixTransform()
[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.h58 FloatRect(const FloatPoint& location, const FloatSize& size) in FloatRect()
61 : m_location(FloatPoint(x, y)), m_size(FloatSize(width, height)) { } in FloatRect()
68 FloatPoint location() const { return m_location; } in location()
71 void setLocation(const FloatPoint& location) { m_location = location; } in setLocation()
90 FloatPoint center() const { return FloatPoint(x() + width() / 2, y() + height() / 2); } in center()
93 void moveBy(const FloatPoint& delta) { m_location.move(delta.x(), delta.y()); } in moveBy()
124 FloatPoint minXMinYCorner() const { return m_location; } // typically topLeft in minXMinYCorner()
125FloatPoint maxXMinYCorner() const { return FloatPoint(m_location.x() + m_size.width(), m_location.… in maxXMinYCorner()
126FloatPoint minXMaxYCorner() const { return FloatPoint(m_location.x(), m_location.y() + m_size.heig… in minXMaxYCorner()
127FloatPoint maxXMaxYCorner() const { return FloatPoint(m_location.x() + m_size.width(), m_location.… in maxXMaxYCorner()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DPathTraversalState.cpp30 static inline FloatPoint midPoint(const FloatPoint& first, const FloatPoint& second) in midPoint()
32 return FloatPoint((first.x() + second.x()) / 2.0f, (first.y() + second.y()) / 2.0f); in midPoint()
35 static inline float distanceLine(const FloatPoint& start, const FloatPoint& end) in distanceLine()
42 QuadraticBezier(const FloatPoint& s, const FloatPoint& c, const FloatPoint& e) in QuadraticBezier()
59 FloatPoint leftControlToRightControl = midPoint(left.control, right.control); in split()
67 FloatPoint start;
68 FloatPoint control;
69 FloatPoint end;
74 … CubicBezier(const FloatPoint& s, const FloatPoint& c1, const FloatPoint& c2, const FloatPoint& e) in CubicBezier()
89 FloatPoint startToControl1 = midPoint(control1, control2); in split()
[all …]
DPath.h44 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;
93 FloatPoint currentPoint() const;
98 void moveTo(const FloatPoint&);
99 void addLineTo(const FloatPoint&);
100 void addQuadCurveTo(const FloatPoint& controlPoint, const FloatPoint& endPoint);
[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;
59 FloatPoint m_control1;
60 FloatPoint m_control2;
67 FloatPoint m_previous;
DPath.cpp70 bool Path::contains(const FloatPoint& point, WindRule rule) const in contains()
75 bool Path::strokeContains(const FloatPoint& point, const StrokeData& strokeData) const in strokeContains()
100 static FloatPoint* convertPathPoints(FloatPoint dst[], const SkPoint src[], int count) in convertPathPoints()
114 FloatPoint pathPoints[3]; in apply()
164 FloatPoint Path::pointAtLength(float length, bool& ok) const in pointAtLength()
166 FloatPoint point; in pointAtLength()
174 FloatPoint point; in normalAngleAtLength()
180 bool Path::pointAndNormalAtLength(float length, FloatPoint& point, float& normal) const in pointAndNormalAtLength()
192 point = FloatPoint(SkScalarToFloat(position.fX), SkScalarToFloat(position.fY)); in pointAndNormalAtLength()
200 point = FloatPoint(0, 0); in pointAndNormalAtLength()
[all …]
DGradient.h51 static PassRefPtr<Gradient> create(const FloatPoint& p0, const FloatPoint& p1) in create()
55 …static PassRefPtr<Gradient> create(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1,…
79 const FloatPoint& p0() const { return m_p0; } in p0()
80 const FloatPoint& p1() const { return m_p1; } in p1()
82 void setP0(const FloatPoint& p) in setP0()
90 void setP1(const FloatPoint& p) in setP1()
131 Gradient(const FloatPoint& p0, const FloatPoint& p1);
132 Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio);
140 FloatPoint m_p0;
141 FloatPoint m_p1;
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderDetailsMarker.cpp38 static Path createPath(const FloatPoint* path) in createPath()
41 result.moveTo(FloatPoint(path[0].x(), path[0].y())); in createPath()
43 result.addLineTo(FloatPoint(path[i].x(), path[i].y())); in createPath()
49FloatPoint points[4] = { FloatPoint(0.0f, 0.07f), FloatPoint(0.5f, 0.93f), FloatPoint(1.0f, 0.07f)… in createDownArrowPath()
55FloatPoint points[4] = { FloatPoint(0.0f, 0.93f), FloatPoint(0.5f, 0.07f), FloatPoint(1.0f, 0.93f)… in createUpArrowPath()
61FloatPoint points[4] = { FloatPoint(1.0f, 0.0f), FloatPoint(0.14f, 0.5f), FloatPoint(1.0f, 1.0f), in createLeftArrowPath()
67FloatPoint 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/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.cpp61 bool SVGPathSegListSource::parseMoveToSegment(FloatPoint& targetPoint) in parseMoveToSegment()
66 targetPoint = FloatPoint(moveTo->x(), moveTo->y()); in parseMoveToSegment()
70 bool SVGPathSegListSource::parseLineToSegment(FloatPoint& targetPoint) in parseLineToSegment()
75 targetPoint = FloatPoint(lineTo->x(), lineTo->y()); in parseLineToSegment()
97 …ool SVGPathSegListSource::parseCurveToCubicSegment(FloatPoint& point1, FloatPoint& point2, FloatPo… in parseCurveToCubicSegment()
102 point1 = FloatPoint(cubic->x1(), cubic->y1()); in parseCurveToCubicSegment()
103 point2 = FloatPoint(cubic->x2(), cubic->y2()); in parseCurveToCubicSegment()
104 targetPoint = FloatPoint(cubic->x(), cubic->y()); in parseCurveToCubicSegment()
108 bool SVGPathSegListSource::parseCurveToCubicSmoothSegment(FloatPoint& point2, FloatPoint& targetPoi… in parseCurveToCubicSmoothSegment()
113 point2 = FloatPoint(cubicSmooth->x2(), cubicSmooth->y2()); in parseCurveToCubicSmoothSegment()
[all …]
DSVGPathBuilder.h46 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode);
47 virtual void lineTo(const FloatPoint&, PathCoordinateMode);
48 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
54 …virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) { ASSERT… in curveToCubicSmooth() argument
55 …virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) { ASSERT_N… in curveToQuadratic() argument
56 …virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) { ASSERT_NOT_REACHED();… in curveToQuadraticSmooth() argument
57 …virtual void arcTo(float, float, float, bool, bool, const FloatPoint&, PathCoordinateMode) { ASSER… in arcTo() argument
60 FloatPoint m_current;
DSVGPathByteStreamSource.h45 virtual bool parseMoveToSegment(FloatPoint&);
46 virtual bool parseLineToSegment(FloatPoint&);
49 virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&);
50 virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&);
51 virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&);
52 virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&);
53 virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&);
88 FloatPoint readFloatPoint() in readFloatPoint()
92 return FloatPoint(x, y); in readFloatPoint()
DSVGPathStringBuilder.h39 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode);
40 virtual void lineTo(const FloatPoint&, PathCoordinateMode);
41 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
47 virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode);
48 virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode);
49 virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode);
50 …virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, Path…
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.h47 virtual bool parseMoveToSegment(FloatPoint&);
48 virtual bool parseLineToSegment(FloatPoint&);
51 virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&);
52 virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&);
53 virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&);
54 virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&);
55 virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&);
DSVGPathStringSource.h45 virtual bool parseMoveToSegment(FloatPoint&);
46 virtual bool parseLineToSegment(FloatPoint&);
49 virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&);
50 virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&);
51 virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&);
52 virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&);
53 virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPoint&);
DSVGPathTraversalStateBuilder.h47 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode);
48 virtual void lineTo(const FloatPoint&, PathCoordinateMode);
49 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
56 …virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode) { ASSERT… in curveToCubicSmooth() argument
57 …virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode) { ASSERT_N… in curveToQuadratic() argument
58 …virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode) { ASSERT_NOT_REACHED();… in curveToQuadraticSmooth() argument
59 …virtual void arcTo(float, float, float, bool, bool, const FloatPoint&, PathCoordinateMode) { ASSER… in arcTo() argument
DSVGPathSegListBuilder.h54 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode);
55 virtual void lineTo(const FloatPoint&, PathCoordinateMode);
56 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
62 virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode);
63 virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode);
64 virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode);
65 …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 …]
DSVGPathByteStreamBuilder.h43 virtual void moveTo(const FloatPoint&, bool closed, PathCoordinateMode);
44 virtual void lineTo(const FloatPoint&, PathCoordinateMode);
45 …virtual void curveToCubic(const FloatPoint&, const FloatPoint&, const FloatPoint&, PathCoordinateM…
51 virtual void curveToCubicSmooth(const FloatPoint&, const FloatPoint&, PathCoordinateMode);
52 virtual void curveToQuadratic(const FloatPoint&, const FloatPoint&, PathCoordinateMode);
53 virtual void curveToQuadraticSmooth(const FloatPoint&, PathCoordinateMode);
54 …virtual void arcTo(float, float, float, bool largeArcFlag, bool sweepFlag, const FloatPoint&, Path…
78 void writeFloatPoint(const FloatPoint& point) in writeFloatPoint()
DSVGPathByteStreamSource.cpp49 bool SVGPathByteStreamSource::parseMoveToSegment(FloatPoint& targetPoint) in parseMoveToSegment()
55 bool SVGPathByteStreamSource::parseLineToSegment(FloatPoint& targetPoint) in parseLineToSegment()
73 … SVGPathByteStreamSource::parseCurveToCubicSegment(FloatPoint& point1, FloatPoint& point2, FloatPo… in parseCurveToCubicSegment()
81 bool SVGPathByteStreamSource::parseCurveToCubicSmoothSegment(FloatPoint& point2, FloatPoint& target… in parseCurveToCubicSmoothSegment()
88 bool SVGPathByteStreamSource::parseCurveToQuadraticSegment(FloatPoint& point1, FloatPoint& targetPo… in parseCurveToQuadraticSegment()
95 bool SVGPathByteStreamSource::parseCurveToQuadraticSmoothSegment(FloatPoint& targetPoint) in parseCurveToQuadraticSmoothSegment()
101 …ToSegment(float& rx, float& ry, float& angle, bool& largeArc, bool& sweep, FloatPoint& targetPoint) in parseArcToSegment()
/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 …]
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
DCanvasPathMethods.cpp62 m_path.moveTo(FloatPoint(x, y)); in moveTo()
72 FloatPoint p1 = FloatPoint(x, y); in lineTo()
86 m_path.moveTo(FloatPoint(cpx, cpy)); in quadraticCurveTo()
88 FloatPoint p1 = FloatPoint(x, y); in quadraticCurveTo()
89 FloatPoint cp = FloatPoint(cpx, cpy); in quadraticCurveTo()
101 m_path.moveTo(FloatPoint(cp1x, cp1y)); in bezierCurveTo()
103 FloatPoint p1 = FloatPoint(x, y); in bezierCurveTo()
104 FloatPoint cp1 = FloatPoint(cp1x, cp1y); in bezierCurveTo()
105 FloatPoint cp2 = FloatPoint(cp2x, cp2y); in bezierCurveTo()
123 FloatPoint p1 = FloatPoint(x1, y1); in arcTo()
[all …]

12345678910>>...12