Lines Matching defs:py
921 jfloat px, jfloat py)
929 /* px,py becomes relative vector from x0,y0 to test point */
931 py -= y0;
932 dotprod = px * x1 + py * y1;
934 /* px,py is on the side of x0,y0 away from x1,y1 */
935 /* distance to segment is length of px,py vector */
941 /* to get px,py to be the negative of px,py=>x1,y1 */
945 py = y1 - py;
946 dotprod = px * x1 + py * y1;
948 /* px,py is on the side of x1,y1 away from x0,y0 */
949 /* distance to segment is length of (backwards) px,py vector */
953 /* px,py is between x0,y0 and x1,y1 */
954 /* dotprod is the length of the px,py vector */
964 return px * px + py * py - projlenSq;