trigonometry
Calculating angle when sine is known
How can I calculate the angle in degrees wh开发者_如何转开发en Math.Sin is known? Asine will work? and multiply it by 180 and divide by pi?Yes, but remember that 135 degrees has the same value for Sin[详细]
2023-03-28 20:00 分类:问答Choosing the right from asin solutions
I am getting the magnitude of 2 vectors that represent the speed of a vehicle in North-South and East-West direction. North is considered positive South negative , East positive and West negative. Obv[详细]
2023-03-28 02:37 分类:问答noise() doesn't give me a wide range of values
I was trying to generate a pseudo-random angle in processing today using noise but it is not working as I would have hoped.[详细]
2023-03-27 20:16 分类:问答2D line intersection point with a bounding box
What would be an efficient algorithm for calculating the intersection point of a line starting a (x,y), with an angle of θ, and a bounding rectangle with co-orindates (0,0 to w,h)?Assuming the line o[详细]
2023-03-25 09:55 分类:问答Algorithm to rotate arbitrary gradient 90 degrees either way
I\'m attempting some rudimentary ray tracing and I have a 2D gradient (called dybydx). I trace from the centre of a square, 0.5, 0.5, and would like to set additional traces normal to the gradient to[详细]
2023-03-22 03:06 分类:问答Inverse Cosine in Python
Apologies if this is straight forward, but I have not found any help in the python manual or g开发者_如何学JAVAoogle.[详细]
2023-03-21 20:54 分类:问答Get length of opposite from adjacent and angle
Im trying to determine where a \"shot\" will hit the wall from a position and an angle. The player shoots a ball from a certain point with a certain angle towards a wall. And I want to be able to dete[详细]
2023-03-21 03:24 分类:问答How to convert a point to polar coordinates in ECMAScript?
I need to turn a click location into a polar coordinate. This is my current algorithm. Location is the location on the canvas of the click ({x:evt.clientX, y:evt.clientY}), center is the offset of the[详细]
2023-03-19 02:11 分类:问答Find degrees (0-360º) of point on a circle
I\'m working on a small webapp in which I need to rotate shapes. I would like to achieve this by grabbing a point on a circle and[详细]
2023-03-18 06:37 分类:问答How do I make make things move properly at angles in Java
I have a class called Bullet in a sort of birds eye view shooter game. I used to run it simply so that it moved based on an inputted direction, which could only be north south east or west. I 开发者_开[详细]
2023-03-18 04:50 分类:问答
加载中,请稍侯......