angle Questions

12

Solved

Given a 2D circle with 2 angles in the range -PI -> PI around a coordinate, what is the value of the smallest angle between them? Taking into account that the difference between PI and -PI is no...
Miserly asked 10/12, 2009 at 6:1

16

Solved

I need to determine the angle(s) between two n-dimensional vectors in Python. For example, the input can be two lists like the following: [1,2,3,4] and [6,7,8,9].
Broome asked 13/5, 2010 at 14:6

4

Solved

I guess it is not that hard, but I have been stuck on that one for a while. I have a joint that can rotate both direction. A sensor gives me the angle of the joint in the range -pi and +pi. I wou...
Korikorie asked 26/3, 2013 at 10:13

11

I'm working on a simple rotate routine which normalizes an objects rotation between 0 and 360 degrees. My C# code seems to be working but I'm not entirely happy with it. Can anyone improve on the c...
Colonel asked 27/10, 2009 at 2:2

4

Solved

I'm looking for a code that permits to have this effect on a canvas' stroke. I've already got an animated circular stroke, I only need to get the ANGLE gradient, not linear and not radial. I've got...
Glaciate asked 6/3, 2014 at 12:3

2

Solved

Currently in one my scientific computation codes I have the following: //Include M_PI constant #define _USE_MATH_DEFINES //Needed for square root function. #include <math.h> This works... ...
Rader asked 3/12, 2012 at 19:44

15

How do you convert Decimal Degrees to Degrees Minutes Seconds In Python? Is there a Formula already written?

12

Solved

Im trying to write a function that takes my decimal degrees (lat or long) and converts them to DMS degrees minutes seconds. I know I am meant to times the decimal point number by 60 then it's decim...
Manufactory asked 26/4, 2011 at 4:43

17

Solved

I have wind direction data coming from a weather vane, and the data is represented in 0 to 359 degrees. I want to convert this into text format (compass rose) with 16 different directions. Basica...
Omnifarious asked 20/9, 2011 at 19:26

5

Solved

I've got a little Problem with the Math.cos() method. I know, I have to convert the angle to Radians before using Math.cos(). But if I just do: System.out.println(Math.cos(Math.toRadians(90)); I...
Sarabia asked 27/10, 2012 at 12:23

5

Solved

I am struggling with this in JavaScript, but this problem applies to many other languages/environments as well. I want to have one object rotating towards the position of another object, and I use...
Muire asked 10/7, 2013 at 15:15

4

Solved

I have coded as below for half circle in iOS using UIBezierPath and CAShapeLayer. clockWiseLayer = [[CAShapeLayer alloc] init]; CGFloat startAngle = -M_PI_2; CGFloat endAngle = M_PI + M_PI_2; C...
Rood asked 23/8, 2015 at 9:17

10

Solved

I want to find out the clockwise angle between two vectors (two-dimensional or three-dimensional). The classic way with the dot product gives me the inner angle (0-180 degrees), and I need to use s...
Sprage asked 28/12, 2012 at 8:51

4

Solved

I want to know how to work out the new co-ordinates for a point when rotated by an angle relative to another point. I have a block arrow and want to rotate it by an angle theta relative to a point...
Caseycash asked 24/4, 2009 at 15:55

7

Solved

I am making small game with pygame and I have made a gun that rotates around its center. My problem is that I want the gun to rotate by itself to the enemy direction, but I couldn't do that because...
Rhonarhonchus asked 15/2, 2017 at 19:43

2

Solved

I need to calculate the angle between a line and the horizontal. My high school maths seems to be failing me. import matplotlib.pyplot as plt import numpy as np x = [8450.0, 8061.0, 7524.0, 7180....
Hluchy asked 6/3, 2016 at 9:50

2

Solved

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.14...
Silencer asked 9/4, 2012 at 4:51

4

Is this a valid way to calculate an angle (in radians) from one CLLocation to another? -(float)angleFromLocation:(CLLocationCoordinate2D)start toLocation:(CLLocationCoordinate2D)end { float deltaX...
Riana asked 3/8, 2011 at 10:3

2

Solved

I'm working on a VR game in Unreal Engine 4 using Blueprints. I want to calculate the (yaw) angle the user needs to turn his/her gun (whose direction is determined via the position of the motion c...

3

Solved

I am trying to find the X, Y points on a circle where 0 degrees starts at the top of the circle and moves clockwise. Typically, to find the x, y coordinates on a circle with a known radius and angl...
Scuttlebutt asked 26/4, 2017 at 18:22

3

Let's say I have two intervals, [a1, a2] and [b1, b2] Where a1,a2,b1,b2 are all in the range [0, 2 pi]. Now, given these two intervals, I want to find their overlapping interval. This is quite t...
Alfilaria asked 20/3, 2019 at 20:57

5

Solved

From the functions for MinAreaRect, does it return angles in the range of 0-360 degrees? I am unsure as i have an object that is oriented at 90 degrees or so but I keep getting either -1 or -15 deg...
Proteus asked 11/4, 2013 at 18:26

5

Solved

This might have been answered before, sorry if it has. I basically need to get the angle from origin to point. So lets say Origin is (0, 0) and my target point is (3, 0). 3 O'clock = 90 degrees 6...
Judi asked 8/7, 2013 at 15:13

8

Solved

I have been not using math for a long time and this should be a simple problem to solve. Suppose I have two points A: (1, 0) and B: (1, -1). I want to use a program (Python or whatever programmin...
Orban asked 30/7, 2015 at 23:1

5

Solved

So I'm working on an application using compass angles (in degrees). I've managed to determine the calculation of the mean of angles, by using the following (found at http://en.wikipedia.org/wiki/Di...
Lemuellemuela asked 18/12, 2012 at 7:39

© 2022 - 2024 — McMap. All rights reserved.