Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
angular bisector

Subject: angular bisector

From: asp

Date: 21 Jan, 2013 15:37:00

Message: 1 of 6

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...

Subject: angular bisector

From: Roger Stafford

Date: 21 Jan, 2013 16:32:08

Message: 2 of 6

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

Subject: angular bisector

From: nithi.pravas@googlemail.com

Date: 21 Jan, 2013 18:54:06

Message: 3 of 6

On Monday, January 21, 2013 4:37:00 PM UTC+1, asp wrote:
> 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...

hallo Roger,
followed your point..still not working...any idea pls..

Subject: angular bisector

From: Roger Stafford

Date: 21 Jan, 2013 19:02:08

Message: 4 of 6

nithi.pravas@googlemail.com wrote in message <fe629ad3-0edf-44a2-ac67-bdaae332f41f@googlegroups.com>...
> On Monday, January 21, 2013 4:37:00 PM UTC+1, asp wrote:
> > 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...
>
> hallo Roger,
> followed your point..still not working...any idea pls..
- - - - - - - -
  Please give a specific example of the p values you are using and the results you expect.

Roger Stafford

Subject: angular bisector

From: nithi.pravas@googlemail.com

Date: 22 Jan, 2013 08:12:50

Message: 5 of 6

On Monday, January 21, 2013 8:02:08 PM UTC+1, Roger Stafford wrote:
> nithi.pravas@googlemail.com wrote in message <fe629ad3-0edf-44a2-ac67-bdaae332f41f@googlegroups.com>... > On Monday, January 21, 2013 4:37:00 PM UTC+1, asp wrote: > > 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... > > hallo Roger, > followed your point..still not working...any idea pls.. - - - - - - - - Please give a specific example of the p values you are using and the results you expect. Roger Stafford

p1 = [50.5986 59.5789]; % Input Waypoints
p2 = [51.4722 57.3708];
p3 = [59.8839 60.7303];
% Angle bisector
V1=[(p1(1)-p2(1)) (p1(2)-p2(2))];
V2=[(p3(1)-p2(1)) (p3(2)-p2(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--');
 
upps---how to add my fig. here ;(

Subject: angular bisector

From: Roger Stafford

Date: 22 Jan, 2013 21:43:05

Message: 6 of 6

nithi.pravas@googlemail.com wrote in message <fe396ae8-9b46-4a51-a0ff-eba0e8f131d3@googlegroups.com>...
> plot([p2(1),V3(1)+p2(1)],[p2(2),V3(2)+p2(2)], 'g--');
- - - - - - - -
  I think I know what the difficulty is. I am guessing that you didn't do an "axis equal" following the 'plot' function. That would distort the image and make the it appear as though V3 were not a bisector. Do this:

plot([p2(1),V3(1)+p2(1)],[p2(2),V3(2)+p2(2)], 'g-',...
     [p2(1),p1(1)],[p2(2),p1(2)],'r-',...
     [p2(1),p3(1)],[p2(2),p3(2)],'b-')
axis equal

This looks like a good angle bisection to me.

Roger Stafford

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us