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
2
votes
1 answer
What are the meaning of the returned values of mahotas.features.zernike_moments
I used this function below to calculate the zernike moments of my image.
mahotas.features.zernike_moments(im, radius=150, degree=8, cm={center_of_mass(im)})
I set degree=8 and get 25 returned values. Can someone explain to me why I got 25 values…

Rosy
- 821
- 2
- 7
- 14
2
votes
1 answer
R iGraph: degree in the case of bidirectional edges
I have noticed that the function degree in iGraph doesn't straighforwardly allow to calculate the degree of the undirected skeleton graph of a directed graph, whenever bidirectional edges are involved.
For example,
g <-graph_from_literal(…

Nonancourt
- 559
- 2
- 10
- 21
2
votes
1 answer
How to make stepper motor turn 360 degrees over time?
I have this code to control my steppermotor in Javascript with an Espruino.
function motorStep(mySteps){
var stepperPins = [C6,C7,C8,C9]; // Change these to your pins (digital output)
var stepBits = [0b0110,0b0101,0b1001,0b1010];
if…

Thomasdc
- 55
- 5
2
votes
1 answer
How to plot degree of network
How can I plot a degree graoh like that?
The picture is only indicative, the result may not be identical to the image.
The important thing is that on the X axis there are labels of the nodes and on the Y axis the degree of each node.
Then the…
user6008748
2
votes
1 answer
android rotate animation get current angle / degrees when interrupted
i wonder how to get current angle / degrees in rotate animation when animation ends or gets interrupted?
my idea is when the animation gets interrupted when some button is clicked, the rotation will go counter-clockwise (current flow is clockwise),…

yfsx
- 1,906
- 14
- 17
2
votes
2 answers
degtorad vs deg2rad in MATLAB?
Is there a difference between degtorad and deg2rad in MATLAB? Is there a benefit of one over the other, like speed (or some other metric I didn't think…

ErinGoBragh
- 336
- 4
- 20
2
votes
1 answer
Minimal spanning tree with degree constraint
I have to solve this problem:
Given a weighted connected undirected graph G=(V,E) and vertex u in V.
Describe an algorithm that finds MST for G such that the degree of u
is minimal; the output T of the algorithm is MST and for each another
…

besad
- 109
- 9
2
votes
2 answers
Calculating the sine, cosine and angle between 3 points
I've written a function to calculate the cosine, sine and degrees of the angle between three points of which I have the x and y coordinates - point 1 (x1, y1), point 2 (x2, y2) and point 3 (x3, y3). I've written the function and been trying to test…

Jack Simpson
- 1,681
- 3
- 30
- 54
2
votes
2 answers
Rotate evenly-distributed elements placed on a circle with jQuery
I have a JavaScript function which allows me to generate DOM elements and plot them on a circle with (good enough) even distribution around the circle. The code is as follows (I'm using jQuery):
function createFields(numberOfItems, className,…

Dan
- 5,836
- 22
- 86
- 140
2
votes
5 answers
MySQL convert Degree, Minutes, Seconds to Degree decimal
I have multiple rows of Degrees Minutes Seconds that I need to convert with a query.
36°19'11.46" N = 36.31985
95°36'02.22" W = 95.600617
Each row is going to be different. I've been stuck on this for two days. Is this even possible?

Joker327
- 65
- 7
2
votes
1 answer
Saving CSV file with degree symbol and ASCII encoded
I have string variable txt. It contains "°" degree symbol. I would like to save string into CSV file ASCII encoded. I use the procedure below But the "°" symbol is converted to "?". Do you have any idea how to save properly degree symbol?
Public…

Tomas Paul
- 490
- 5
- 13
2
votes
3 answers
How do i tell java its closer to go 350 -> 355 -> 360 -> 05 degrees instead of all the way around
I'm creating a racing game, in which I run into some problems while creating the AI. What I need to do is get the AI from a X,Y position to a "checkpoint" with another X,Y position. The AI driving track will be created by placing different invisible…

Carl Ohlsson
- 31
- 3
2
votes
1 answer
Matlab function to compute average neighbor degree
I tried searching a function for matlab that gives the average neighbor degree of a graph.
There is a function for the same in python in network-X package. So i was wondering if there's a similar function in matlab.
***********Edit****************
I…

SeasonalShot
- 2,357
- 3
- 31
- 49
2
votes
3 answers
Rotating a 3D Vector without a Matrix (OpenGL)
I want to rotate a Vector(0, -10, 0) around the X and Y axis. I want to rotate X rotX degrees(0 - 360°) and Y rotY degrees(0 - 180°). I tried much but I couldnt get it done. Coudld anybody give me a solution for that? Some of my code I…

user3075425
- 332
- 1
- 6
- 23
2
votes
3 answers
Rotate a number 180 degrees and get the same number
I thought the problem of rotating a number 180 degrees clockwise ( or ccw) and getting the same number. For all digits, except 3, 4 and 7, the rotated one is a valid digit. (rotate 3 and you get ε). I'm new in C# but I managed to solve it.
public…

iusmar
- 339
- 1
- 6
- 15