A triangle is a three-sided polygon.
0
votes
1answer
23 views
Getting triangles side coords within a circle
I want to get the x and y coördinates on the triangle for every degree 'a', if I know the 30° and the radius. I also want to use it with more corners.
Here is the image:
...
1
vote
2answers
29 views
Image-revealing triangles in XNA
Say, I have some images drawn on screen, like in any average XNA project. Is it possible to make it so that only a selected array of triangles of the image is visible? Here's an example:
The red ...
1
vote
5answers
116 views
Creating Triangle button In Java
I am trying to create a triangle button.
I don't know how to do it so i'm gonna need for help in creating and please explane to me how to create it!
Here's what I'm trying to achieve:
Any ideas?
0
votes
0answers
63 views
Triangle drawing (Rasterization)
I'm trying to draw(/fill) a triangle, it works.. sometimes, I've got a problem when 2 of the point have y-coordinates that get really close to eachother. the dx/dy gets reaaalllyy big (And could even ...
3
votes
1answer
51 views
Trouble Drawing Arcs Between Adjacent Edges of Triangle
I have been trying to write the code for generating random triangles and drawing arcs between the adjacent edges of the trianglefor describing the angle between them. It almost works. But it seems my ...
0
votes
2answers
65 views
What is the difference of those code snippets?
The following code snippets are my attempts to get the triangles from indices and vertices. The indices vector contains the number of the vertex. The vertices vector contains the coordinates where ...
1
vote
6answers
69 views
Python Asterisk Triangle Program Help Please
I'm brand new to Python...coming from a background in Google's App Inventor. I'm taking an online class, and so far I've been doing very well, but this optional problem is driving me mad. I could skip ...
0
votes
4answers
68 views
Recursive numeric triangle in python
I'm trying to create a triangle like the following:
1 2 3 4 5 6
2 3 4 5 6
3 4 5 6
4 5 6
5 6
6
Without using while, for in, lists, etc. Just "if-else" cases and recursive functions. I've just ...
-7
votes
3answers
114 views
C++ : write a triangle class using point class [closed]
in c++ I'm trying to create a triangle class using a point class. the correct way in java would be:
public class Point {
double x, y;
public Point(double x, double y){
this.x=x;
...
3
votes
3answers
70 views
Finishing a triangle with loops
I'm trying to make a right sided triangle that looked like this in Java with loops:
+
/|
/ |
/ |
/ |
+----+
The program needed the args as an int to determine the size of each of ...
1
vote
2answers
102 views
Drawing Sierpinski's Triangle in Java
I'm having some issues with my code to draw a Sierpinski's Triangle (or Sierpinski's Gasket), but I'm not sure what the problem is. The lines for the triangle are drawn, then all the fractals, then it ...
2
votes
4answers
82 views
Python Spaced Triangle
I'm supposed to write a program that ends up such as this:
* *
* *
* *
*
I have the code written for a regular one, but I'm not sure how to incorporate spaces into it.
def triangle(i, ...
0
votes
1answer
42 views
2D Point in triangle test implemented on Android
I want to determine if a 2D point is inside a triangle using pure java on the Android platform. I reserve a special bonus for using the same representation for 2D points that is used in Android for ...
1
vote
1answer
37 views
How to store Shapes in Mongo DB
I want to create a database using mongoDb and I am new to this area. And also want to Insert and select data to store shapes like circle, triangle, etc. I want to know how to do it.
0
votes
1answer
28 views
Edge bi-partitioning, no triangles: complexity?
I've got to find an algorithm to solve a problem for faculty.
I'm not requesting solutions (and please don't post any), just read further.
The problem's sentence:
** Given a graph G = (V, E) find 2 ...