for a geo-based online game I\'m looking for an algorithm which finds the shortest distance between a specified point and a known path connected by x/y-coordinates, so that I can kill all redundant po
Is there any way to detect if any point in a given rect is contained inside of another, larger, rect? I\'m trying to figure out when certain rects are on the screen (for memory management to deallocat
I\'m trying to figure out an algorithm for finding a random point a set distance away from a base point. So for example:
I am trying to draw point sprites with OpenGL ES on iPhone. It\'s possible there could be very many of them (1000) and up to 64 pixels wide (maybe that\'s my problem right there - is there a limit or
I\'m trying to experiment with 2D physics engines in C++. So far, it seems the most popular开发者_如何学JAVA is Box2D. Unfortunately, Box2D is a rigid body physics engine and that\'s not really going
I\'m working on an application with statistic开发者_如何学C analysis, and I need some help. Given a set of n points, how can I approximate a line by them. I\'m sure there is an algorithm but I couldn\
Ok, I have a projectile that has its position defined such that: a.x = initialX + initialDX * time; a.y = initialY + initialDY * time + 0.5 * gravtiy * time^2;
I want to find out if a Chinese character can be displayed, the unidode for it is \"\\u8D27\", how to use the Java Font method canDisplay ? It takes an int, but \"8D27\" is not an integer开发者_如何学
Greetings; I\'m having a bit of trouble correctly instantiating an Array of System.Drawing.Point instances, and then adding the Array of Points to a GDI+ GraphicsPath instance using IronPython in a W
I\'m currently displaying开发者_Python百科 a quantity in Javascript. I want it to display (for example) the whole number as 89 instead of 89.00; however, if the number is fractional like 89.50 then it