Questions tagged [angle]

A shape, formed by two lines or rays diverging from a common point (the vertex).

Angle is also used to designate the measure of an angle or of a rotation. This measure is the ratio of the length of a circular arc by its radius. In the case of an angle (figure), the arc is centered at the vertex and delimited by the sides. In the case of a rotation, the arc is centered at the center of the rotation and delimited by any point and its image by the rotation.

Source: mathopenref wikipedia

1421 questions
8
votes
3 answers

From Cartesian Plot to Polar Histogram using Mathematica

Please Consider: dalist={{21, 22}, {26, 13}, {32, 17}, {31, 11}, {30, 9}, {25, 12}, {12, 16}, {18, 20}, {13, 23}, {19, 21}, {14, 16}, {14, 22}, {18,22}, {10, 22}, {17, 23}} ScreenCenter = {20, 15} FrameXYs = {{4.32, 3.23},…
500
  • 6,509
  • 8
  • 46
  • 80
8
votes
6 answers

Detecting outer most-edge of image and plotting based on it

I'm working on a project that can calculate the angle of an elbow joint by image. The part I'm struggling on is the image processing. Currently doing this in Python using an Intel RealSense R200 (although it can be taken that I'm using an image…
George Hynes
  • 83
  • 1
  • 1
  • 5
8
votes
2 answers

Angle between 2 GPS Coordinates

I'm working in another iPhone App that uses AR, and I'm creating my own framework, but I'm having trouble trying to get the angle of a second coordinate relative to the current device position, anyone know a good resource that could help me with…
Paulo Ferreira
  • 423
  • 2
  • 8
  • 16
8
votes
2 answers

Finding a "movement direction" (angle) of a point

I'm working on a pretty cool project where I'm collecting data about the movement of a cursor, but I've run into an issue where I think I could use some help. I am constantly reading in data about the x and y position of the cursor (along with other…
John Alberto
  • 437
  • 3
  • 7
  • 16
8
votes
4 answers

Periodic Data with Machine Learning (Like Degree Angles -> 179 is 2 different from -179)

I'm using Python for kernel density estimations and gaussian mixture models to rank likelihood of samples of multidimensional data. Every piece of data is an angle, and I'm not sure how to handle the periodicity of angular data for machine…
calben
  • 1,328
  • 3
  • 18
  • 33
8
votes
2 answers

How to create a div with a diagonal (or angled) top line

I'm a newbie on CSS3 and all I know is self-learned, reading you guys or any other tutorials so after hours of researching and trial-error, I could really use your help :(. I'm trying to rotate JUST the top line of a div. This is what I did so…
bibifont
  • 83
  • 1
  • 1
  • 4
8
votes
5 answers

Find if an angle is within X degrees from another

I need an algorithm to figure out if one angle is within a certain amount of degrees from another angle. My first thought was (a-x < b) && (a+x > b), but it fails when it has to work with angles that wrap around from -179 to 180. In the diagram…
user47322
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

Svg matrix decomposition

In svg we have method element.getCTM() which returns a SVGMatrix as: [a c e][b d f][0 0 1] I want to calculate sx , sy and angle of rotation from this matrix.
rsk
  • 81
  • 1
  • 6
7
votes
2 answers

How to change the view angle and label value of a chart .NET C#

Short Description I am using charts for a specific application where i need to change the view angle of the rendered 3D Pie chart and value of automatic labels from pie label names to corresponding pie values. This how the chart…
George
  • 1,466
  • 3
  • 12
  • 30
7
votes
1 answer

ggplot2: How to rotate a graph in a specific angle?

I would like to rotate a ggplot2 graph by a self-specified angle. I found how to rotate the axis text with element_text(angle = 20). I would like to do something similar with the whole plot. Reproducible example: set.seed(123) data_plot <-…
Joachim Schork
  • 2,025
  • 3
  • 25
  • 48
7
votes
2 answers

Python code to calculate angle between three points (lat long coordinates)

Can anybody suggest how to calculate angle between three points (lat long coordinates) A : (12.92473, 77.6183) B : (12.92512, 77.61923) C : (12.92541, 77.61985)
itsvks
  • 383
  • 1
  • 6
  • 16
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
3 answers

Move a rectangle using angles

I need to move a rectangle using angles. Actually I want to change the direction of my moving rectangle when it reaches the location I have given in my code in if statement! I just need the way I can find out how to move my rectangle at 60, 30, 60,…
Java Nerd
  • 958
  • 3
  • 19
  • 51
7
votes
1 answer

Matlab angle between two points

I am looking for an algorithm to calculate the angle between two points (defined by x and y valaue) in an image. The angle should be between the horizontal-line of one of these points and the line that connects the two points. How can I do that?
farahm
  • 1,326
  • 6
  • 32
  • 70