Lines Matching refs:rPnt
164 void MirrorPoint(Point& rPnt, const Point& rRef1, const Point& rRef2) in MirrorPoint() argument
169 long dx=rRef1.X()-rPnt.X(); in MirrorPoint()
170 rPnt.X()+=2*dx; in MirrorPoint()
172 long dy=rRef1.Y()-rPnt.Y(); in MirrorPoint()
173 rPnt.Y()+=2*dy; in MirrorPoint()
175 long dx1=rPnt.X()-rRef1.X(); in MirrorPoint()
176 long dy1=rPnt.Y()-rRef1.Y(); in MirrorPoint()
177 rPnt.X()=rRef1.X()+dy1; in MirrorPoint()
178 rPnt.Y()=rRef1.Y()+dx1; in MirrorPoint()
180 long dx1=rPnt.X()-rRef1.X(); in MirrorPoint()
181 long dy1=rPnt.Y()-rRef1.Y(); in MirrorPoint()
182 rPnt.X()=rRef1.X()-dy1; in MirrorPoint()
183 rPnt.Y()=rRef1.Y()-dx1; in MirrorPoint()
188 rPnt-=rRef1; in MirrorPoint()
189 long nPntWink=GetAngle(rPnt); in MirrorPoint()
194 RotatePoint(rPnt,Point(),nSin,nCos); in MirrorPoint()
195 rPnt+=rRef1; in MirrorPoint()
277 double CrookRotateXPoint(Point& rPnt, Point* pC1, Point* pC2, const Point& rCenter, in CrookRotateXPoint() argument
282 long x0=rPnt.X(); in CrookRotateXPoint()
283 long y0=rPnt.Y(); in CrookRotateXPoint()
286 double nWink=GetCrookAngle(rPnt,rCenter,rRad,bVert); in CrookRotateXPoint()
289 RotatePoint(rPnt,rCenter,sn,cs); in CrookRotateXPoint()
331 double CrookSlantXPoint(Point& rPnt, Point* pC1, Point* pC2, const Point& rCenter, in CrookSlantXPoint() argument
336 long x0=rPnt.X(); in CrookSlantXPoint()
337 long y0=rPnt.Y(); in CrookSlantXPoint()
343 dx1=rPnt.X()-nStart; in CrookSlantXPoint()
344 rPnt.X()=nStart; in CrookSlantXPoint()
355 dy1=rPnt.Y()-nStart; in CrookSlantXPoint()
356 rPnt.Y()=nStart; in CrookSlantXPoint()
366 double nWink=GetCrookAngle(rPnt,rCenter,rRad,bVert); in CrookSlantXPoint()
369 RotatePoint(rPnt,rCenter,sn,cs); in CrookSlantXPoint()
373 rPnt.X()+=dx1; in CrookSlantXPoint()
377 rPnt.Y()+=dy1; in CrookSlantXPoint()
386 double CrookStretchXPoint(Point& rPnt, Point* pC1, Point* pC2, const Point& rCenter, in CrookStretchXPoint() argument
393 long y0=rPnt.Y(); in CrookStretchXPoint()
394 CrookSlantXPoint(rPnt,pC1,pC2,rCenter,rRad,rSin,rCos,bVert); in CrookStretchXPoint()
401 long dy=rPnt.Y()-y0; in CrookStretchXPoint()
405 rPnt.Y()=y0+Round(a); in CrookStretchXPoint()
508 long GetAngle(const Point& rPnt) in GetAngle() argument
511 if (rPnt.Y()==0) { in GetAngle()
512 if (rPnt.X()<0) a=-18000; in GetAngle()
513 } else if (rPnt.X()==0) { in GetAngle()
514 if (rPnt.Y()>0) a=-9000; in GetAngle()
517 a=Round((atan2((double)-rPnt.Y(),(double)rPnt.X())/nPi180)); in GetAngle()
546 long GetLen(const Point& rPnt) in GetLen() argument
548 long x=Abs(rPnt.X()); in GetLen()
549 long y=Abs(rPnt.Y()); in GetLen()