[Papervision3D] Solve for angle? -0.999 = Math.cos(angle)
UKLA
craig at blueion.com
Tue Aug 5 10:05:25 PDT 2008
Ya ... got it. My brain was getting clustered with all of the numbers and I
lost focus.
var angle = Math.acos(cameraX);
rotationY = (angle * Math.PI/180);
Tom Richardson wrote:
>
> Dude, convert from degrees to radians.
>
> On Tue, Aug 5, 2008 at 11:48 AM, UKLA <craig at blueion.com> wrote:
>
>>
>> That gives me degrees ... I need radian equivalent
>>
>>
>>
>>
>> Tom Richardson wrote:
>> >
>> >
>> http://thesaurus.maths.org/mmkb/entry.html?action=entryByConcept&id=1294
>> >
>> > On Tue, Aug 5, 2008 at 9:29 AM, UKLA <craig at blueion.com> wrote:
>> >
>> >>
>> >> This is pv3d related. Trying to solve for angle but can't figure out
>> how.
>> >> Needs to be in radians.
>> >>
>> >> camera.x = Math.cos(angle)
>> >>
>> >> I always know camera.x but I need to solve for the angle in order to
>> do
>> >> some
>> >> other calculations.
>> >>
>> >> In the case of -0.999 = Math.cos(angle) ... angle is equal to 3.14. I
>> >> got
>> >> 3.14 by entering numbers on my caluclator and taking the cosine.
>> >> Eventually
>> >> 3.14 gave me -0.999. Of course, this isn't the way to do it.
>> >>
>> >> Any ideas?
>> >>
>> >> -----
>> >> Craig Anthony
>> >> Flash Developer
>> >> http://www.blueion.com Blue Ion, LLC.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Solve-for-angle----0.999-%3D-Math.cos%28angle%29-tp18832357p18832357.html
>> >> Sent from the Papervision3D mailing list archive at Nabble.com.
>> >>
>> >>
>> >> _______________________________________________
>> >> Papervision3D mailing list
>> >> Papervision3D at osflash.org
>> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >>
>> >
>> > _______________________________________________
>> > Papervision3D mailing list
>> > Papervision3D at osflash.org
>> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>> >
>> >
>>
>>
>> -----
>> Craig Anthony
>> Flash Developer
>> http://www.blueion.com Blue Ion, LLC.
>> --
>> View this message in context:
>> http://www.nabble.com/Solve-for-angle----0.999-%3D-Math.cos%28angle%29-tp18832357p18835202.html
>> Sent from the Papervision3D mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>
-----
Craig Anthony
Flash Developer
http://www.blueion.com Blue Ion, LLC.
--
View this message in context: http://www.nabble.com/Solve-for-angle----0.999-%3D-Math.cos%28angle%29-tp18832357p18835593.html
Sent from the Papervision3D mailing list archive at Nabble.com.
More information about the Papervision3D
mailing list