Home | History | Annotate | Download | only in wince

Lines Matching refs:POINT

167 static inline int quadrant(const PathPoint& point, const PathPoint& origin)
169 return point.m_x < origin.m_x ?
170 (point.m_y < origin.m_y ? 2 : 1)
171 : (point.m_y < origin.m_y ? 3 : 0);
242 POINT* winPoints = 0;
245 winPoints = new POINT[npoints + 1];
247 winPoints = new POINT[npoints];
325 bool PathPolygon::contains(const FloatPoint& point) const
330 // Test intersections between the polygon and the vertical line: x = point.x()
339 if (point1->x() != point.x()) {
340 if (point2.x() == point.x()) {
342 wasNegative = point1->x() < point.x() ? 1 : 0;
343 } else if (point2.x() < point.x() != point1->x() < point.x()) {
344 float y = (point2.y() - point1->y()) / (point2.x() - point1->x()) * (point.x() - point1->x()) + point1->y();
345 if (y >= point.y())
352 if (point1->y() == point.y())
355 if (point1->y() > point.y()) {
356 if (point2.x() == point.x()) {
357 // see if the point is on this segment
358 if (point2.y() <= point.y())
374 if (j->x() != point.x()) {
375 if (j->x() > point.x())
386 if (wasNegative ? point2.x() > point.x() : point2.x() < point.x())
389 } else if (point2.x() == point.x() && point2.y() >= point.y())
501 // According to W3C, we have to draw a line from current point to the initial point
605 bool PlatformPath::contains(const FloatPoint& point, WindRule rule) const
608 if (!containsPoint(m_boundingRect, point))
612 if (i->contains(point))
619 void PlatformPath::moveTo(const FloatPoint& point)
621 PlatformPathElement::MoveTo data = { { point.x(), point.y() } };
626 void PlatformPath::addLineTo(const FloatPoint& point)
628 PlatformPathElement::LineTo data = { { point.x(), point.y() } };