trigonometry
HTML5 canvas coordinates are giving strange angles
I want to be able to orient something toward the mouse on an HTML5 canvas. But when I use Math.atan2 and the other trig functions, the directions get messed up. It rotates in the opposite direction th[详细]
2023-01-25 22:22 分类:问答find the angle of point related to pivot
It’s been days that I’m working on a project which I have to use convex hull in it, and specific method of graham scan. The problem has been solved till the place I want to sort the points.[详细]
2023-01-25 18:27 分类:问答How can I correctly calculate the direction for a moving object?
I\'m solving the following problem: I have an object and I know its position now and its position 300ms ago. I assume the obj开发者_如何学运维ect is moving. I have a point to which I want the object t[详细]
2023-01-25 09:16 分类:问答How can I account for round-off errors in floating-point arithmetic for inverse trig (and sqrt) functions (in C)?
I have a fairly complicated function that takes several double values that represent two vectors in 3-space of the form (magnitude, latitude, longitude) where latitude and longitude are in radians, an[详细]
2023-01-24 17:04 分类:问答How to calculate (x,y) for a fixed arc length away from a point on a circumference
I\'ve spent so many hours on this I can feel my sanity slowly slipping. So any help would be really truly appreciated.[详细]
2023-01-24 05:57 分类:问答Java 1.5 Issue with drawing shape using lines and angles
Hey, I\'m trying to write a method that takes a starting Cartesian coordinate(x,y) an angle (in degrees), a length and a number of sides and draws a shape to an applet. So far thi开发者_运维知识库s is[详细]
2023-01-23 09:24 分类:问答Weird Great Circle Distance calculation
I have some problems with a great circle distance calculation using a map. Context: http://airports.palzkill.de/search/[详细]
2023-01-23 00:47 分类:问答n-gram sentence similarity with cosine similarity measurement
I have been working on a project about sentence similarity. I know it has been asked many times in SO, but I just want to know if my problem can be accomplished by the method I use by the way that I a[详细]
2023-01-22 02:28 分类:问答Math Equations for Random Snow in a Snow Globe
I\'ve been experimenting with this and I haven\'t been able to come up with an adequate solution. Hoping one of you Mathletes can point me in the right direction.I\'m building a Snow Globe in ActionSc[详细]
2023-01-21 12:49 分类:问答Assistance with Lua Cosine, wrong results returned
Ok, first up, this is NOT for a class, test, or other student type activity. I\'m a scripter for a game, and am trying to implement the math library for all to use, and unfortunately, all I have ava[详细]
2023-01-21 04:24 分类:问答