geometry
Point on a line closest to x,y [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: How can I tell if a point is nearby a certain line?[详细]
2023-03-29 12:37 分类:问答Rotate a set of object coordinates
I have a bunch of开发者_C百科 objects (ActiveRecord) that have x and y coordinates relative to a HTML5 canvas element. I need to rotate sets of them by different number of degrees (in 90 degrees incre[详细]
2023-03-29 09:45 分类:问答Shape casting a capsule against convex polyhedra
Let\'s say I have a upright capsule shape (swept sphere) that I would like to cast it along a velocity vector. I would like to be able to find the point of contact and a surface normal for any convex[详细]
2023-03-29 08:04 分类:问答a planet in openGL: vector data or texture mapping?
I am completely new to 3D 开发者_运维技巧and started with Jeff Lamarche\'s tutorials as an introduction to openGL ES for iPhone, then so far, I am able to draw a spinning sphere, which will the base o[详细]
2023-03-28 23:04 分类:问答How to set a custom clipping zone for HTML5 Canvas?
I need to draw on a rectangle minus a circle. If the circle clipping is not possible, a polygonal clipping zone could be enough for my ne开发者_开发知识库ed.[详细]
2023-03-28 21:03 分类:问答align one set of 2d points with another using only translation and rotation
I\'m working in OpenCV but I don\'t think there is a function for this开发者_开发知识库. I can find a function for finding affine transformations, but affine transformations include scaling, and I onl[详细]
2023-03-28 15:31 分类:问答Given a degree x, find the nearest degree in an array of degrees
I have an array of degrees, [10, 90, 200, 280, 355] for a circle.开发者_运维技巧 I\'m given a degree, let\'s say 1.How do I determine that 1 is closest to 355 degrees?Subtract the two numbers. If the[详细]
2023-03-28 12:41 分类:问答Calculate Bounding box coordinates from a rotated rectangle
I have the coordinates of the top left point of a rectangle as well as its width, height and rotation from 开发者_JAVA技巧0 to 180 and -0 to -180.[详细]
2023-03-28 11:56 分类:问答Estimating aspect ratio of a convex hull
What would be the best way to approximate the aspect ratio of a convex hull in Python?开发者_如何学Python I have already tried doing this by fitting the vertices of the convex hull with an ellipse and[详细]
2023-03-28 05:56 分类:问答Intersection between two rectangles in 3D
To get the line of intersection between two rectangles in 3D, I converted them to planes, then get the line of intersection using cross product of their normals, then I try to get the line intersectio[详细]
2023-03-27 19:28 分类:问答