A unit of measurement for angles, which are two lines or rays diverging from a common point. Questions here regard angles measurements, arguments for trigonometric functions, geometry, etc.
Questions tagged [degrees]
264 questions
0
votes
1 answer
plotting degrees in IDL
I'm using IDL 8.2
I have a list of positions (RA and Dec) of stars and i want to plot them on a figure, eg.
37.9 ~ 37 54' 0"
37.7 ~ 37 42' 0"
I read in the positions (degrees) in as strings and extract the degrees, minutes and seconds into separate…

theotheraussie
- 495
- 1
- 4
- 14
0
votes
0 answers
GLSL Shaders | Slices of circle
I'm trying to make kind of polar clock in Quartz Composer with GLSL Shaders. The problem is i've no idea of this programming language. However i've been searching and found this code as good start:
Vertex Shader:
#version 120
void main()
{
…

Dekrab
- 1
0
votes
1 answer
C program not printing values
I am writing a program that converts decimal degrees to degrees, minutes, seconds.
This is what it is supposed to do:
-118.1406209154 = 118 degrees 8 minutes 26.2342 seconds West.
W If it is negative then it is either west longitude or south…

user3188716
- 29
- 1
- 1
- 4
0
votes
2 answers
Unity - How can I add or subtract a chosen number of degrees from an angle?
I was wondering if there's a way to add (in my case) 120 degrees everytime I push 'ButtonA', and subtract 120 degrees everytime I push 'ButtonB', from the Z-axis rotation of a 2d sprite (prefab).
This is the code I'm using at the moment, but it…

Bartvb98
- 9
- 2
- 7
0
votes
1 answer
Excel formula converting tan to angle
I have an excel spreadsheet that computes the Tan of an angle in degrees.
I need a formula that will convert the cell (Tan<) to an angle in degrees.
FYI:
I can send excel spreadsheet if needed.

Craig
- 21
- 1
- 2
0
votes
1 answer
AS3 equivalent of PHP's deg2rad
Hey all, what is the Actionscript 3 equivalent of PHP's deg2rad function?

Ozzy
- 10,285
- 26
- 94
- 138
0
votes
1 answer
Convert azimuth to degrees
What is a generic formula for converting azimuth(from -180 to 180) to degrees(from 0 to 360)?
double azimuth = (Math.toDegrees(matrixValues[0]));
if(azimuth < 0){
azimuth += 360;
}
azimuth -= 90;
…

zbz.lvlv
- 3,597
- 6
- 34
- 38
0
votes
5 answers
Dealing with sign change in c++ angles
I'm trying to identify the angle between two points via a central point using c++. I'm using std::atan2(y,x) to obtain the angle. For brevity, I'm converting the radians to degrees. This is working fine.
However, my problems lie with the sign…

user3791372
- 4,445
- 6
- 44
- 78
0
votes
2 answers
Degrees from triangles
On my calculator I typed in 90-sin^-1(Y/X)
Y=6, X=9
I was returned with approximately:
48.71 degrees (which I expected)
But on java it returns:
0.72
I was told to use asin on java... Is that correct?

user3399541
- 1
- 2
0
votes
1 answer
AS3: point.polar
again.
So, what i'm trying to achieve here is that I calculate a random number between 0 - 360 and than convert it to degrees. My teacher told me that i had to use a point.polar.
I've been looking at this the whole day and am now completely lost at…

Eleonara
- 35
- 4
0
votes
2 answers
define css arrow's degree
How would I define the degree of an arrow created with css follows
.bubble
{
background: none repeat scroll 0 0 #FF7401;
border: 3px solid silver;
border-radius: 25px;
bottom: 18px;
float: right;
height:…

fefe
- 8,755
- 27
- 104
- 180
0
votes
1 answer
Extract RA and DEC values
Im using Excel 2010
I am having trouble extracting the correct values from a RA and DEC values.
I want to extract each value from the RA and DEC and place the deg, min, sec in separate columns.
Essentially just rewrite the values in separate…

theotheraussie
- 495
- 1
- 4
- 14
0
votes
1 answer
Python math, Pythagora, degrees and coordinates
Is me again. Did I mention how much I love you guys? My prof talked me into trying python, so far I hate it, but I decided to give it a try. I have made a simple program, using pygame, that moves few circles around the screen. I have issues with…

Antonio Teh Sumtin
- 498
- 4
- 12
- 26
0
votes
2 answers
As3: Math, I'm too stupid for this. (trigonometry)
Okay, so I made some ai where a guard is following my character.
I am using this code:
private function getDegrees(radians:Number):Number
{
//return Math.floor(radians/(Math.PI/180));
return radians / 0.01745 | 0;
}
…

user3123633
- 19
- 7
0
votes
1 answer
how to find collections of nodes for each degree found in a graph
I am trying to fill an hash map were keys are nodes degree and values are a Collection of all the nodes with that degree value. Right now I came up with this code:
// hashmap to hold the result
HashMap> result = new…

user299791
- 2,021
- 3
- 31
- 57