I\'ve always wondered the easiest way to figure out whether or not a point lies within a triangle, or in this instance, a rectangle cut into half diagonally.
I need a basic function to find the shortest distance between a point and a line segment.Feel free to write the solution in any language you want; I can translate it into what I\'m using (Javascript).
Here\'s a riddle for you. You have a polygon composed of exactly 4 vertices, call them v1, v2, v3, v4. They are given in any random order. How would you split these vertices into two sets, each defini
I\'m working on a (rather) simple 2D project in OpenGL. It\'s some sort of asteroids clone. The ship is basically an isosceles triangle of height H, with the base have a length of H/2.
I am trying to write a simple program that lets me overlay a dot on top of an image when the image is clicked.I can save the X and Y data back to my database but then I will want to be able to call th
I have a set of randomly distributed point in a coordinate system and I\'m interested in recognising开发者_JS百科 if some of the points form any geometric figures like a square, circle, parallelogram
Right i am just getting into OpenGL ES, and if i am开发者_高级运维 honest it is very daunting.
Closed. This question is off-topic. It is not currently accepting answers. 开发者_运维知识库 Want to improve this question? Update the question so it's on-topic for Stack Overflow.
I have a set of points which are interpolated with an unknown method, or to be more precise, the method is known but it can be one of the several - it can be polynomial interpolation, spline, simple l
I\'ve been working on this problem for awhile now, and haven\'t been able to come up with a good solution thusfar.