Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

angle b/w two points/Lines

user11219778Dec 8 2010 — edited Dec 8 2010
Hi,

I am refering my Qs to following thread.
1130433

I required to find angle b/w two points but in the following code it is using 3 points.

g1 := point(50, 7); -- Point A
g2 := point(51, 7); -- Point B
g3 := point(50,10); -- Point C

angle1 := atan2(g2.sdo_point.x - g1.sdo_point.x,
g2.sdo_point.y - g1.sdo_point.y);
angle2 := atan2(g3.sdo_point.x - g1.sdo_point.x,
g3.sdo_point.y - g1.sdo_point.y);

any easir way is greatly appreciated.
Al
This post has been answered by 741357 on Dec 8 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 5 2011
Added on Dec 8 2010
2 comments
442 views