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.
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:
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.
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
I have a triangle (JSFiddle) using this CSS: .triangle { width: 0; height: 0; border-top: 0; border-bottom: 30px solid #666699;
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
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.
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.
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.
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: