geometry
How to find upper envelopes of intersected lines in O(nlogn)?
Disclaimer: Yes, this is a homework and I am thinking about it for a couple of days but couldn\'t find a way to go.[详细]
2023-04-05 02:02 分类:问答Creating a Triangle wave from a Sine wave in C++
I am having trouble finding out how to form a triangle (not sawtooth) wave from a sine wave. I understand how to create it for a S开发者_Go百科quare wave:[详细]
2023-04-05 00:52 分类:问答Point within circle
Given the c开发者_运维百科enter point and radius of a circle, how do I know if a certain point (x,y) is in the circle? Anyone knows it? Thanks.Originally you asked for Objective-C.[详细]
2023-04-04 23:58 分类:问答Given a vector of points (possibly out of order), find polygon (not convex hull)
I currently have a vector of points vector<Point> corners; where I have previously stored the corner points of a given polygon. Given that, I know for sure that the points form a simple polyg[详细]
2023-04-04 20:51 分类:问答How do I make a CSS triangle with smooth edges?
I have a triangle (JSFiddle) using this CSS: .triangle { width: 0; height: 0; border-top: 0; border-bottom: 30px solid #666699;[详细]
2023-04-04 15:03 分类:问答OpenGL ES 1.1 2D Ring with Texture iPhone
I would appreciate some help with the following. I\'m trying to render a ring shape on top of another object in OpenGL ES 1.1 for an iPhone game. The ring is essentially the difference between two cir[详细]
2023-04-04 11:39 分类:问答Sorting polygon's points
I have a convex polygon ABCDE... (it can have any number of points). I need to sort all its vertexes so none of the edges will intersect.[详细]
2023-04-04 10:20 分类:问答Mirror a line segment
I have a line segment (x1, y1), (x2, y2) that i need \"mirrored\" so the new line becomes perpendicular to the first one and passes through its middle.[详细]
2023-04-04 09:23 分类:问答Detecting if a triangle flips when changing a point
I need to change a triangle by replacing one of its points. However, I need to detect if doing so would cause the triangle to flip.[详细]
2023-04-04 08:28 分类:问答y-orbit tumbles from top to bottom as mouseY changes in Processing IDE
NOTE: this is in the Processing IDE I am trying to get spherical orbiting down and i\'ve almost got it. this is what i have so far:[详细]
2023-04-04 04:31 分类:问答