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
-2
votes
1 answer

How to compute yaw of the vector location from another vector?

How would I compute the yaw of an object in 3D space? I know the coordinates of my current position ( start vector ) and my target ( end vector ). For example, I'm facing north so my current yaw is 0 degrees or 360. The object is located on my left…
-2
votes
1 answer

How do i shoot bullets 360* using keyboard while rotating a object in canvas?

I want my object to shoot in the direction my object is facing when it rotates or moves, any ideas on how to do it? I'm a beginner as well i started few days ago so its pretty hard on me to find the codes and to learn them as well as i cant find a…
-2
votes
1 answer

How to shoot an object, which is moving in a circle

So I have an object which is moving in a circular path and enemy in the centre of this circle. I'm trying to find out how to calculate shotingDirection for bullets. Transform.position isn't ennough since bullets will be shooted in last known object…
floati21
  • 27
  • 6
-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
4 answers

c++ calculate all the angles between two angles

I have a set of previously defined float values(a set of angles) I need a function which takes two angles as input and returns all the angles between them. The user first enters a set of angles in float and then the user can enter any two angles(my…
abbas
  • 9
  • 2
-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
  • 869
  • 2
  • 10
  • 32
-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
  • 1,015
  • 9
  • 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
  • 55
  • 2
  • 6
-2
votes
1 answer

Creating a L shape in openGL

I want to create a "L" shape so bascially 2 cuboids, I can do this the long way around but want to be able to create it with the vertices method which im struglging to achieve.. Can anyone help? float vertices[8][3] = { { 0, 2, 0.5 }, {…
-2
votes
1 answer

IOS: rotate NSString with an angle

I want to rotate a NSString by an angle. but I dont want the whole string to rotate,instead I want the string head stay in the original place. How can i make NSString rotate around a certain point , but not the whole matrix rotate... OK,sorry for…
sinopec
  • 851
  • 1
  • 9
  • 16
-3
votes
1 answer

Need to check if point X is in any distance from a line made between 2 dots

I am using Sourcepawn, can also understand java ,but I need just a tip, idea to work on - 2 red dots are end points of the beam. Beam can be in any angles (X,Y). I need to focus on green dot, check the closest distance between orange line (I don't…
bonk
  • 5
  • 6
-3
votes
1 answer

Matlab - Incorrect dimensions for raising a matrix to a power

Suppose we have a=60 and B=60. I am trying to calculate this area: when I try this: W = ((u^2)* cot(B) + (v^2 * cot(a))/8; I get this error: Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a…
Hadi GhahremanNezhad
  • 2,377
  • 5
  • 29
  • 58
1 2 3
94
95