|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] GP: Flipping a point across a line: possible answers
Hello Matt I have not learned how to do it, but I would say that if your line has a directing vector defined as v ( a,b ) you could use the vector normal to this line v'( -b,a ), compute the intersection I of the new line passing through your point P with the original one, then you define the PI vector, a simply translate the co-ordinates of P by 2*PI. That is my first guess. Another method would maybe involve transforming the "miror" line into one of the major axis and the P point into a P' one using the same transformation, compute the mirroring P'' and use the inverse of the transformation to find the real transformed co-ordinates of P thanks to the line, but I do not want to get involved in such calculations. Tell me if that helps. Kamel. Eudoxus3 wrote: > > Hello peeps, > > Would anyone happen to know how to calculate the reflected coordinates of > a point, on one side of a line, to the other. > > Regards, > > Matt. W. > -- > *** eudoxus@freeuk.com *** http://members.xoom.com/eudoxusM/ > mwebster@apsoft.co.uk > > ================================================================= > To SUBSCRIBE or UNSUBSCRIBE please visit > http://gameprogrammer.com/mailinglist.html ================================================================= To SUBSCRIBE or UNSUBSCRIBE please visit http://gameprogrammer.com/mailinglist.html
|
|