Questions tagged [degrees]

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.

264 questions
0
votes
2 answers

Object wont move based on angle given?

So I've been trying to make an object move based on two speeds that it creates using atan(). But every test results in the same movement of going straight up. So I decided to take that out and replace it with inputted angles which oddly does only…
mkjrfan
  • 77
  • 1
  • 8
0
votes
0 answers

(C#) Given a circle, a set of angles, and the average of those angles: how do I find out how many degrees/radians are between them?

Chart 1: So let's say I'm given angles 1,2,3, and 4 and their average. Imagine that these angles could potentially be any angle on the circle. How do I: A. From the average angle, detect the furthest angle in the clockwise direction (4). B. From…
ATD
  • 824
  • 1
  • 9
  • 14
0
votes
2 answers

How to make eclipse be based on degrees?

As much as I am confortable with using degrees I am unconfortable with using radians, which is much. This makes it a real pain for me to use radians for the trigo functions in eclipse. Is it possible to use the trigo functions with degrees instead…
user2435678
  • 319
  • 2
  • 3
  • 14
0
votes
1 answer

Android : Find Angle, and draw Bitmap at that angle?

I am porting a game I have made, from Windows (Visual Studio c# XNA4) to Android. In the game, I need to find the location of the users "touch" (Which I have done), and then "point" the player to this touch location (draw the player bitmap at this…
Ryan86
  • 3
  • 2
0
votes
2 answers

Display value from Math.tan() in degrees?

I'm learning programming for android and i made a calculator. The calculator is working fine but I'm having troubles with my sin, cos and tan formulas. I would like to display the values in degrees instead of radians. Here is the piece of code that…
Marcus Gabilheri
  • 1,259
  • 1
  • 14
  • 26
0
votes
1 answer

Convert GPS Degrees Minutes Seconds to Decimal Degrees

I have a formula that I am using to calculate decimal degrees from gps coordinates. GPS Coordinates: 3800.5825,N 08735.5417,W Formula: Private Function DMStoDD(ByVal toConvert As Double, ByVal Dir As String) As Double Dim DD As Double Dim…
jay
  • 434
  • 1
  • 5
  • 25
0
votes
2 answers

Android accelerotmeter - detecting a person turning

I have started to play with interacting with the accelerometer and had an interesting question. Is there a way to reliably detect if a user is turning on the spot with the phone - and how much (e.g. degrees)? I tried looking it up and did not find…
amirsk
  • 11
  • 1
  • 6
0
votes
1 answer

Angles on a circle

I am trying to work out some circle detection and I'm having trouble working out some angles, can anyone tell me how to get the angle value of these blue angles. I have never worked with angles before, so can someone point me to some relevant…
MrSansoms
  • 31
  • 4
0
votes
1 answer

convert UIAccelerometer data into Degree in iPhone?

any idea how to turn the accelerometer data into degrees? i have developed an accelerometer application and i need to get the values in degree? UIAccelerometer *accel = [UIAccelerometer sharedAccelerometer]; accel.delegate = self; …
Neeraj Neeru
  • 570
  • 8
  • 28
0
votes
1 answer

Find a point on a circle circumference based on degrees

Let's say that you have a stick figure. Let's say the stick figure has an elbow and a hand. What if the stick figure wants to spin his hand in a windmill without moving his elbow? If the elbow serves as the center of a circle, and the hand must…
0
votes
3 answers

Correct formula to "invert" rotation (in degrees) in AS3?

I have my player movieclip on the stage, and when the mouse is clicked a bullet is fired and projected at the correct angle to point itself at the mouse location. I also want a "mirroring" enemy, that fires at the complete opposite direction when…
PROWNE
  • 39
  • 1
  • 9
0
votes
1 answer

How to deal with circle degrees in Numpy?

I need to calculate some direction arrays in numpy. I divided 360 degrees into 16 groups, each group covers 22.5 degrees. I want the 0 degree in the middle of a group, i.e., get directions between -11.25 degrees and 11.25 degrees. But the problem is…
l.z.lz
  • 393
  • 1
  • 4
  • 13
0
votes
1 answer

How do I display a full 360 degrees using Actionscript 2 and Trigonometry?

I'm creating a game that uses trigonometry to calculate and display distance and degrees in dynamic text boxes. I'm calculating the distance of my cursor from center of a movie clip. And using that center of the movie clip, I'm trying to calculate…
-1
votes
2 answers

Algorithm to rotate a float value between 0 and 360 degrees by +180 degrees

I want to take a floating point number (which will be between 0.0 and 360.0) and rotate that value by + 180 degrees. So 0.0 would become 180.0 90.0 would become 270.0 180.0 would become 0.0 270 would become 90.0 I am thinking of the following…
Dave502619
  • 57
  • 6
-1
votes
2 answers

How do I make my calculator this to calculate in degrees rather than radians

I have been stuck on this for a very long bit of time. How do I make my calculator calculate in degrees rather than radians. I tried Math.toDegrees but it did not work. Thank you if you decide to help. import java.util.Scanner; public class Main { …
bruh
  • 1
  • 4