Lines Matching refs:p1
1316 TkGetMiterPoints(p1, p2, p3, width, m1, m2)
1317 double p1[]; /* Points to x- and y-coordinates of point
1325 * point (see as you face from p1 to p2). */
1329 double theta1; /* Angle of segment p2-p1. */
1341 if (p2[1] == p1[1]) {
1342 theta1 = (p2[0] < p1[0]) ? 0 : PI;
1343 } else if (p2[0] == p1[0]) {
1344 theta1 = (p2[1] < p1[1]) ? PI/2.0 : -PI/2.0;
1346 theta1 = atan2(p1[1] - p2[1], p1[0] - p2[0]);
1371 * looking from p1 to p2).
1403 * p1 *---------------* p2
1408 * them and m1-m2 perpendicular to p1-p2. However, if
1413 * p1 *---------------* |
1426 TkGetButtPoints(p1, p2, width, project, m1, m2)
1427 double p1[]; /* Points to x- and y-coordinates of point
1435 * point, as you face from p1 to p2. */
1439 double length; /* Length of p1-p2 segment. */
1443 length = hypot(p2[0] - p1[0], p2[1] - p1[1]);
1448 deltaX = -width * (p2[1] - p1[1]) / length;
1449 deltaY = width * (p2[0] - p1[0]) / length;