._x);
var diffy = (obj2._y-obj1._y);
return (Math.sqrt((diffx*diffx)+(diffy*diffy)));
}
Regards,
Rahul
- Original Message -
From: "ryanm" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Tuesday, November 22, 2005 4:30 PM
Subject: Re: [Fla
Thank u... :-P
ryanm wrote:
I am having 3 movie Clips named point1_mc, point2_mc, point3_mc in
the stage. They are arranged in such a way to form a triangle...
Now how can i get those 3 angles and sides formed by these points.?
With a high school geometry textbook? ;-)
Law of cosines: c
Thank u Danny Kodicek...
and i am presenting the solution to solve SSS triangle...
/SOLVE TRIANGLE ///
///pass the instance names of there movieclips on the stage
//this function returns a Solution Object
//Solution object has:
//a-side1
//b-side2
//c-si
I am having 3 movie Clips named point1_mc, point2_mc, point3_mc in the
stage. They are arranged in such a way to form a triangle...
Now how can i get those 3 angles and sides formed by these points.?
With a high school geometry textbook? ;-)
Law of cosines: c^2 = a^2 + b^2 - 2ab*Cos(q)
Whe
I am having 3 movie Clips named point1_mc, point2_mc, point3_mc in the
stage. They are arranged in such a way to form a triangle...
Now how can i get those 3 angles and sides formed by these points.?
Sides are given by the lengths of the vectors between the points (eg: x =
point1_mc._x - poi
I am having 3 movie Clips named point1_mc, point2_mc, point3_mc in the
stage. They are arranged in such a way to form a triangle...
Now how can i get those 3 angles and sides formed by these points.?
Thank u
-Pandian
___
Flashcoders mailing list
Flash
6 matches
Mail list logo