Lines Matching defs:P1
803 Geom::Point P1;
818 P1 = cit->initialPoint();
825 if(Geom::are_near(P1_lead, P1, 1e-5))continue; // duplicate points at the same coordinate
826 v1 = unit_vector(P1 - P1_trail);
827 v2 = unit_vector(P1_lead - P1 );
828 if(Geom::are_near(dot(v1,v2), 1.0, 1e-5)){ // P1 is within a straight line
829 P1 = P1_lead;
832 // P1 is the center point of a turn of some angle
834 output.start( P1 );
837 if(!Geom::are_near(P1, P1_trail, 1e-5)){ // possible for P1 to start on the end point
838 Geom::LineSegment ls(P1_trail, P1);
848 P1_trail = P1;
849 P1 = P1_lead;
861 Geom::Point P1;
873 P1 = cit->finalPoint();
874 v1 = unit_vector(P1 - P1_trail);
890 P1 = cit->finalPoint();
891 v1 = unit_vector(P1 - P1_trail);
892 // P1 is center of a turn that is not 90 degrees. Limit comes from cos(89.9) = .001745
963 Geom::Point P1;
965 P1 = cit->initialPoint();
967 if ( ( LR == (dot(P1 - center,v1) > 0 ? 0 : 1) )
968 && ( UL == (dot(P1 - center,v2) > 0 ? 1 : 0) ) ) break;
971 return(P1);