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
8
votes
4 answers
Lat Long to Minutes and Seconds?
Google Maps gives me the Lat and Long of a location in decimal notation like this:
38.203655,-76.113281
How do I convert those to Coords (Degrees, Minutes , Seconds)

Ian Vink
- 66,960
- 104
- 341
- 555
8
votes
2 answers
Why do we use radians in programming?
I like radians just as much as the next guy, and typically prefer to use them over degrees, but why do we use radians in programming?
To rotate something 180 degrees, you need to rotate it by 3.14159265.... Sure, most languages have some kind of…

Tom Marthenal
- 3,066
- 3
- 32
- 47
7
votes
1 answer
Coefficients of polynomials maxima
Is there a built-in function in maxima to get from a polynomial function a list with its coefficients? And to get the degree of the polynomial?
The most similar function I found is args, but it also returns the variable together with the…

Maximator
- 83
- 1
- 5
7
votes
3 answers
Java: Determin angle between two points
OK firstly apologies as I know this kind of question has been asked before more than once. However even after looking at the other questions and answers I have been unable to get this to work for my situation. See below for an example:
All I am…

Joss
- 125
- 1
- 7
7
votes
2 answers
Error in FUN(X[[1L]], ...) : as.edgelist.sna input must be an adjacency matrix/array, edgelist matrix, network, or sparse matrix, or list thereof
I am trying to learn few basic functions in Igraph- But, I am having problems computing the degrees from a gragph: see example below (I copied the following example from this site):
Example of data set:
edges <- matrix(c(103, 86, 24, 103, 103, 2,…

Ibrahima
- 71
- 1
- 2
6
votes
1 answer
Converting Pixels to LatLng Coordinates
Hello Programming World,
I am using the Google Maps API v3 and I have a map overlay that I need specific coordinates from.
In the image, I've managed to convert the two pixel coordinate sets from the top left and bottom right into latitude and…
user1767177
6
votes
1 answer
MATLAB sin() vs sind()
I noticed that MATLAB has a sin() and sind() functions.
I learnt that sin() accepts the angle in radians and sind() accepts the angle in degrees.
The only difference I know is sind(180) gives 0 but sin(pi) doesn't:
>> sin(pi)
ans =
1.2246e-016
>>…

barney
- 141
- 1
- 2
- 6
6
votes
4 answers
Calculate average of wind direction in MySQL
I have a table with the wind direction (among other weather values) every 10 seconds on a new row.
The direction is stored as degrees: 0 - 360.
Purpose
What is the meaning of this average? The database stores every 10 seconds a row with…

stUrb
- 6,612
- 8
- 43
- 71
5
votes
1 answer
Calculation of degrees is inaccurate
I'm using the following code to convert radians to degrees and do some arithmetic on the same.
private double getDegrees(double rad)
{
double deg = rad * Mathf.Rad2Deg;
double degree = (-135 - deg) % 360;
return degree;
}
The value…
user6038900
5
votes
1 answer
Angular 4 - rotate image in 45deg steps
I have image and two buttons that should rotate that image 45 or -45 degrees.
How can I…


John Theoden
- 325
- 2
- 10
- 23
5
votes
2 answers
Rotating a CGPoint around another CGPoint
Okay so I want to rotate CGPoint(A) 50 degrees around CGPoint(B) is there a good way to do that?
CGPoint(A) = CGPoint(x: 50, y: 100)
CGPoint(B) = CGPoint(x: 50, y: 0)
Here's what I want to do:

Benja0906
- 1,437
- 2
- 15
- 25
5
votes
3 answers
how to simplify angles (in degrees) in R?
I am building a manual / by-hand / judgmental factor rotation function.
Obviously, rotating the two-dimensional coordinate system 270° is the same as -90° and 720° is the same as 0°.
I'd like to simplify user input such that all values are between…

maxheld
- 3,963
- 2
- 32
- 51
5
votes
2 answers
Display different values at different angles in a circle using html5 canvas
Using HTML5 Canvas and Javascript I need to display different values (represented by a dot maybe) at different angles inside a circle.
Example data:
val 34% @ 0°,
val 54% @ 12°,
val 23% @ 70°,
and so on...
If I have a canvas 300 x 300px and the…

Linus Jäderlund
- 515
- 5
- 13
4
votes
1 answer
How to clip ImageView at the angle degree?
How to clip ImageView at the angle degree?
Like:

imworse
- 51
- 4
4
votes
2 answers
java, How to calculate degree from tan
I'm using java. I have a tan value.
I really surprise that I can't find a way to turn it into degree.
I already search but only find a way to turn degree into tan.
please help.

Phootip
- 156
- 1
- 12