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

What does the comma mean in the arctan operator?

I was reading the the answers to the question about finding the angle between 2 vectors in 3D space. Signed angle between two 3D vectors with same origin within the same plane. The answer is shown here: atan2((Vb x Va) . Vn, Va . Vb) is exactly…
Astronomer
  • 119
  • 4
-3
votes
1 answer

Calculating trig functions of angles in degrees

So I found the taylor series online for calculating trig functions but as far I can tell this only works for radians, is there any way to create a similar formula and program it to calculate trig for angles in degrees without converting radians to…
-3
votes
1 answer

cardinal components to cardinal direction using arctan function

I have ocean currents data (going towards). what would be the conversion I can use? 270-(atan2(zonal,meridional)(180/pi)) or 270-(atan2(meridional,zonal)(180/)) or anything entirely different? I have gone through [this link][1] and also [eol][2]…
reddy
  • 1
-3
votes
1 answer

make Ball bounce off object edges in C

I am trying to make a ball bounce off the edges of a rectangular shaped paddle, what I have done so far, is making the ball bounce off the top edge of the paddle. But whenever the ball touches any other side (right or left), it gets stuck within the…
Yamen Tawk
  • 67
  • 3
  • 10
-3
votes
2 answers

How to convert an Integer or Float values into Degrees?

For example: float AngleAddition(float value) { float angle = value + 90; return angle; } If the value passed is 340 to this method it should return a float of value 70 which is in degree. Since 340 + 90 = 360 + 70 (360 is nothing but 0…
Karthik
  • 101
  • 1
  • 13
-3
votes
1 answer

How to make a Java Rectangle move at an angle

I'm a new game developer and I have always wondered about how would I go about making a 'Rectangle' object move at a certain angle? I thought I could make the x increase rapidly and the y increase at a delay, but how would I do that?
user3670816
  • 17
  • 1
  • 7
-3
votes
1 answer

a method to find the nearest multiple of 2pi

I need to make an efficient function that matches this footprint: public static double NearestAngle(this double currentAngle, double targetAngle); where the return value is targetAngle +/- n*2pi. The return value should minimize the absolute…
Brannon
  • 5,324
  • 4
  • 35
  • 83
-3
votes
1 answer

XNA Break the wall programming

I'm trying to create this game (break the wall) and I have a question : When the ball hits the paddle it's angle should change accordingly, but how? Any one knows and can help me? thank you!!
sagicoh
  • 105
  • 11
-4
votes
3 answers

How do you calculate the angle between one object and another?

How do you calculate the angle between one object and another assuming your first object is your origin and the up vector is, well up? I struggled with this problem in android and java for about six hours and there wasn't any really good questions…
Lokiare
  • 1,238
  • 1
  • 15
  • 23
-4
votes
1 answer

How to work out the angle between two 2D vectors using cross product?

So here's a link for the same question but the best answer doesn't explain it fully: Rotate Sprite to Mouse Position It's the cross product that I'm stuck with, since the formula in that link can only be applied in mathematics outside of computing.…
StallMar
  • 31
  • 1
  • 2
  • 7
-5
votes
1 answer

Angles in Matlab

i need to calculate some expression for all angles from 0 to 90 degrees increments 10 degrees (of cause expression depends on some trigonometrical function). It looks like: for alpha = 0:10:90 func(alpha) = c * sin(alpha) end Who know how to…
E. Trofimov
  • 92
  • 1
  • 11
1 2 3
94
95