• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/tcl-105/tk/tk/generic/

Lines Matching +defs:start +defs:point

33     double start;		/* Angle at which arc begins, in degrees
35 double extent; /* Extent of arc (angular distance from start
65 * start (see ComputeArcOutline). */
67 * start+extent (see ComputeArcOutline). */
162 {TK_CONFIG_DOUBLE, "-start", NULL, NULL,
163 "0", Tk_Offset(ArcItem, start), TK_CONFIG_DONT_SET_DEFAULT},
209 double start, double extent);
213 double start, double extent);
216 double start, double extent);
292 arcPtr->start = 0;
487 i = (int) (arcPtr->start/360.0);
488 arcPtr->start -= i*360.0;
489 if (arcPtr->start < 0) {
490 arcPtr->start += 360.0;
656 double tmp, center[2], point[2];
702 * To compute the bounding box, start with the the bbox formed by the two
717 tmp = -arcPtr->start;
722 point[0] = arcPtr->bbox[2];
723 point[1] = center[1];
724 TkIncludePoint((Tk_Item *) arcPtr, point);
726 tmp = 90.0 - arcPtr->start;
731 point[0] = center[0];
732 point[1] = arcPtr->bbox[1];
733 TkIncludePoint((Tk_Item *) arcPtr, point);
735 tmp = 180.0 - arcPtr->start;
740 point[0] = arcPtr->bbox[0];
741 point[1] = center[1];
742 TkIncludePoint((Tk_Item *) arcPtr, point);
744 tmp = 270.0 - arcPtr->start;
749 point[0] = center[0];
750 point[1] = arcPtr->bbox[3];
751 TkIncludePoint((Tk_Item *) arcPtr, point);
799 int start, extent, dashnumber;
850 start = (int) ((64*arcPtr->start) + 0.5);
888 (unsigned) (y2-y1), start, extent);
898 (unsigned) (x2-x1), (unsigned) (y2-y1), start, extent);
951 * Computes the distance from a given point to a given arc, in canvas
955 * The return value is 0 if the point whose x and y coordinates are
956 * coordPtr[0] and coordPtr[1] is inside the arc. If the point isn't
957 * inside the arc then the return value is the distance from the point to
972 Tk_Item *itemPtr, /* Item to check against point. */
997 * See if the point is within the angular range of the arc. Remember, X
1017 diff = pointAngle - arcPtr->start;
1202 * 1. The outside points of the arc, corresponding to start and extent.
1209 angle = -arcPtr->start*(PI/180.0);
1225 tmp = -arcPtr->start;
1235 tmp = 90.0 - arcPtr->start;
1245 tmp = 180.0 - arcPtr->start;
1255 tmp = 270.0 - arcPtr->start;
1328 if (HorizLineToArc(tRect[0], tRect[2], tRect[1], rx, ry, arcPtr->start,
1331 arcPtr->start, arcPtr->extent)
1333 arcPtr->start, arcPtr->extent)
1335 arcPtr->start, arcPtr->extent)) {
1341 if (HorizLineToArc(tRect[0], tRect[2], tRect[1], rx, ry, arcPtr->start,
1344 arcPtr->start, arcPtr->extent)
1346 arcPtr->start, arcPtr->extent)
1348 arcPtr->start, arcPtr->extent)) {
1356 * last check, which is to check one point of the rectangle to see if it's
1380 * transformation is applied to all point coordinates:
1510 angle = -arcPtr->start*PI/180.0;
1571 * points generated on either side of the center point. The second point
1572 * is the corner point.
1663 * arc section defined by rx, ry, start, and extent, and 0 otherwise.
1680 double start, double extent)/* Angles that define extent of arc, in the
1684 double tx, ty; /* Coordinates of intersection point in
1688 * Compute the x-coordinate of one possible intersection point between the
1706 if ((x >= x1) && (x <= x2) && AngleInRange(tx, ty, start, extent)) {
1709 if ((-x >= x1) && (-x <= x2) && AngleInRange(-tx, ty, start, extent)) {
1725 * arc section defined by rx, ry, start, and extent, and 0 otherwise.
1742 double start, double extent)/* Angles that define extent of arc, in the
1746 double tx, ty; /* Coordinates of intersection point in
1750 * Compute the y-coordinate of one possible intersection point between the
1768 if ((y > y1) && (y < y2) && AngleInRange(tx, ty, start, extent)) {
1771 if ((-y > y1) && (-y < y2) && AngleInRange(tx, -ty, start, extent)) {
1783 * Determine whether the angle from the origin to a given point is within
1788 * given by start and extent, where angles are interpreted in the
1800 double x, double y, /* Coordinate of point; angle measured from
1802 double start, /* First angle, degrees, >=0, <=360. */
1811 diff = diff*(180.0/PI) - start;
1864 ang1 = arcPtr->start;
1868 ang2 = arcPtr->start;