Date: Jan 21, 2013 11:32 AM
Author: Roger Stafford
Subject: Re: angular bisector
asp <nithi.pravas@googlemail.com> wrote in message <e36e6809-36a1-4d79-a4e8-cd4ba96ff74b@googlegroups.com>...

> I am given three points...i constructed an angular bisector using vectors

> V1=[(p1(1)-p2(1)) (p1(2)-p2(2))];

> V2=[(p2(1)-p3(1)) (p2(2)-p3(2))];

> V1=V1/norm(V1);

> V2=V2/norm(V2);

> V3 = V1+V2; % Bisector vector

> plot([p2(1),V3(1)+p2(1)],[p2(2),V3(2)+p2(2)], 'g--');

>

> But the bisector i got is wrong...

> Am i doing anything wrong in coding or direction of vectors..

> i took p1p2 and p2p3 direction...

> thanks for your help...

- - - - - - - - -

If p2 is the point at the angle you wish to bisect, then just reverse the direction of V2.

V1 = p1-p2;

V2 = p3-p2;

etc

Roger Stafford