radians

Why does OpenGL use degrees instead of radians?

The OpenGL designers were never afraid of mathematics, and knowledge of linear algebra is essential for all but the simplest OpenGL applications. I think it can safely be assumed that OpenGL programmers are familiar with angles in radians. Mathematically, radians are more elegant than degrees in every respect. They also have practical a...

AS3 equivalent of PHP's deg2rad

Hey all, what is the Actionscript 3 equivalent of PHP's deg2rad function? ...

How do I draw the points in an ESRI Polyline, given the bounding box as lat/long and the "points" as radians?

I'm using OpenMap and I'm reading a ShapeFile using com.bbn.openmap.layer.shape.ShapeFile. The bounding box is read in as lat/long points, for example 39.583642,-104.895486. The bounding box is a lower-left point and an upper-right point which represents where the points are contained. The "points," which are named "radians" in OpenMap, ...

get opposite radian angle - AS3

hi there, I am trying to retrieve the opposite radian angle after I have retrieve a radian angle from another calculation. This is using AS3 ...

PHP: need more decimal places for sinus calculation

Hi volks, to calculate some longitude and latitude values I need more decimal places like mysql is possible to do. For instance with mysql I get this result: cos( RADIANS( 47.685618 ) ) = 0.67319814951254 With PHP 5.2 I only get: cos( deg2rad( 47.685618 ) ) = 0.673198149513 Two decimal places shorter but I need them. I know I a...

cos result incorrect

I import "math.h". I can use the cos function, but when I execute cos(0.321139585333178) the result is 0.948876 If I use the calculator in Mac or use a normal calculator, the result is 0.999984292347418 Can anyone help me to solve that problem? ...

cos of degrees not matching the cos of equivalent radians

All math functions in JavaScript use radians in place of degrees. Yet they are either unequal, or I am way off base. The conversion from degrees to a radian is: var rad = angle * Math.PI / 180 A 90 degree angle equals 1.57079633 radian The cosine of a 90 degree angle equals 0. The cosine of a 1.57079633 radian equals -3.20510345 × 1...

iOS SDK CGAffineTransform Angle Question

I need to get angle in radians. I have: CGFloat angle = asin(myImage.transform.b); This seems to be not working. I need to extract the angle of 'myImage' at any moment in time. How would I extract this? ...