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

1278 questions
-1
votes
1 answer

Trouble with Direction and Angle Updating in XNA

I have been trying to make a tower defense game game where the mob is given a destination to move towards at a given velocity, and the way it is set up now something quirky is happening with the updateAngle() method that I am not sure about. //…
user2716722
  • 83
  • 10
-1
votes
1 answer

Maximum clockwise angles from 3 nearest points

Help me, because I'm rly tired of this... I need to count angles between current point and the closest 3 points (look at an image below) - I need to sort the angles in descending order (to get the point with the largest angle - if it doesn't fit…
Nickon
  • 8,180
  • 10
  • 52
  • 105
-1
votes
3 answers

Slingshot action (movement) without cocos-2d

I want to create a game in which the sling shot will be used like in angry birds or sling shot game. I want to ask can is this possible to make the slingshot action like it throws at object in the angle with out cocos-2d. Please help me how should I…
Gypsa
  • 11,150
  • 6
  • 42
  • 82
-1
votes
1 answer

Random angle in matlab

I'm trying to write a matlab program which is able to a random walk, but each step/vector has the same length and the thing that determines the direction is a "random" angle. The angle is not quite random since it has some specific boundary…
Pall Axel
  • 13
  • 4
-1
votes
1 answer

Get angle between 2 points

There's a player. While moving cursor Id like to get angle between player and cursor. My code for this is : public void mouseMoved(MouseEvent ev) { float angle = (float) Math.toDegrees(Math.atan2(ev.getX() - player.getCenterX(), …
user2102972
  • 231
  • 1
  • 6
  • 12
-1
votes
1 answer

How to draw a triangle by two(or three) given angles with angles written at each corners in actionscript ?

I tried to google it but couldn't find a solution.there are method to draw a triangle with one given angle and two lengths .but i want to draw triangle with given two angles.Can some one guild me..
-1
votes
2 answers

What is the angle of vector between two points/cordinates

Does anyone know how to get an angle between two points when 0 degree reference is up (at 12 o'clock)? I'm using two sets of (x,y) points for atan2() for that but it returns 0 degree at 3 o'clock.
RlyDontKnow
  • 121
  • 4
  • 12
-1
votes
1 answer

Condition in constructor javavascript

I want to add condition in constructor for angle if(angle>360){ angle=0; } how to do? PLAYER[i] = { color: "#fff", x: 220*i, y: 270, width: 32, height: 32, angle: 180 }; each time to use such a condition, takes a lot of…
Arti
  • 5,595
  • 11
  • 44
  • 102
-2
votes
1 answer

Most efficient Python code for finding reference angles?

Here is what I created below. There has to be a more efficient way for my daughter who is a beginning coder to implement this. What is the most efficient methodology for coding this ? I especially would like to see a better way to code…
Lee
  • 1
  • 1
-2
votes
1 answer

Why is it necessary to add 270 degrees to correct rotation?

Computing the angle between two points seems inconsistent with regards to DOM rotation I've written code to compute the angle between two points. I use the HTML canvas to plot a line between points and I also display a DOM element featuring an…
-2
votes
1 answer

how to calculate 3d point on circumference of a circle by angle?

Hello everyone :) I need to calculate a 3d point by specific angle. I allready know the plane where is the circle (point from this plane and normal vector), and the angle. The plane can be positioned in any possible way (not only with the normal (0,…
Simona
  • 1
  • 1
-2
votes
1 answer

How to create a 45 degree Askew or skew element in objective-c?

I want to create any (particularly uiview) kind of element (uiimageview, uibutton, uilabel etc.,) that should be in askew or skew style. Is that possible in xcode - objective-c? If you want deep explanation: 1) go to google.com and search ASKEW or…
Mathi Arasan
  • 819
  • 2
  • 9
  • 29
-2
votes
1 answer

Calculate The object angle(face) having two points?

C++, I want calculate the angle of the direction of the two points. Here is a picture which shows the two points and the direction of how to get the angle of the direction? p1 - start point. p2 - direction point. me need direction angle(facing?)…
-2
votes
1 answer

I want to find angle between two location respective to third location

There are three location on map. Location A , Location B and Location C. I have only latitude and longitude of all three location. Now i want to find angle "B" with respect to "A" and "C" in android map. Please help me.
Darsh Patel
  • 949
  • 7
  • 15
-2
votes
1 answer

Angle betwee three points ios xcode

CGPoint pointA = [self.appDelegate.points[0] CGPointValue];//first point CGPoint pointB = [self.appDelegate.points[1] CGPointValue];// second point CGPoint pointC = [self.appDelegate.points[2] CGPointValue];//third point CGFloat slopeAB = (pointB.y…
Manohar
  • 65
  • 2
  • 6