Lines Matching refs:p2
115 * @param p2 The second point defining the line segment
119 const Vector2& p1, const Vector2& p2) {
121 // intersection point should stay on both the ray and the edge of (p1, p2).
124 float divisor = (dx * (p1.y - p2.y) + dy * p2.x - dy * p1.x);
134 float distance = (p1.x * (rayOrigin.y - p2.y) + p2.x * (p1.y - rayOrigin.y) +
135 rayOrigin.x * (p2.y - p1.y)) / divisor;
596 float p2 = rayDist[i];
598 rayDist[i] = (p1 + p2 * 2 + p3) / 4;