Questions tagged [triangle]

Triangles are simple, yet fundamental building blocks of many different mathematical fields including trigonometry and geometry.

There are 6 types of triangles including:

  • Equilateral

    All edges are the same length.

    enter image description here

  • Isosceles

    Two edges are the same length.

    enter image description here

  • Scalene

    All edges are different lengths.

    enter image description here

  • Right

    One angle with value of 90 degrees.

    enter image description here

  • Obtuse

    One angle with value greater than 90 degrees.

    enter image description here

  • Acute

    All angles with value less than 90 degrees.

    enter image description here

126 questions
0
votes
1 answer

Generating a mesh in Unity: How do I set triangle vertices to align with points from the next GameObject?

I want to generate a mesh in Unity. I have GameObjects (segments) that contain GameObjects (points). To create a triange mesh, I set two of the three triangle vertices to the two points of the current GameObject. The third triangle vertice must then…
doc4
  • 3
  • 3
0
votes
1 answer

How to find triangle Height with 2 points and Length?

I'm trying to figure out how to get the Height of a triangle: I have startPoint, endPoint and Length: Point startPoint = Start.GetPoint(); Point endPoint = End.GetPoint(); double Length = panel.W + startPoint.X; I already figured out how to get…
0
votes
1 answer

I've been getting Exception in thread "main" java.lang.ArrayOutOfBoundsException: 2 error on most of my java programs. How should I fix this?

I am new to programming. I've been in a class for a week now and I am stuck on this problem for most of my java programs. There was an exception for one of the programs where the code executed perfectly and showed the desired results.But for some of…
mAirborne
  • 11
  • 2
0
votes
1 answer

Recursive function to create triangle

what is wrong with my code to generate the folowing output. I need to use recursive function to complete the program but I get the wrong output. def computeTriangle(levels): ` if levels == 0: return [] elif levels == 1: …
Maria
  • 1
0
votes
1 answer

Removing Triangles of mesh having Cloth component

I have implemented the remove triangle for removing selected triangles using raycast in unity. My implementation works fine with mesh in having no components of cloth but when I am adding the cloth component, i am still able to remove the triangles…
0
votes
1 answer

why is the filling value always equal to 'True' , and why can't I set the value for the parent class's attributes using the child's constructor

The goal was to design a class named "Triangle" , that extends from the class "GeometricObject" , the overall code works fine and has no errors but the problem is that the "filled" value won't change and also , I'm not able to set the initial values…
dareen42
  • 3
  • 1
0
votes
0 answers

Triangle Div -- With Border-image

Hi im trying to make a the triangle div have a background image or border-image. .desktop-layer6 { width: 0; height: 0; top: 33.5%; left: -18%; position: absolute; border-left: 670px solid transparent; border-right: 600px solid…
timbukto
  • 1
  • 2
0
votes
0 answers

Ray tracing triangle intersection in cylindrical coordinates

I am using a finite difference Navier Stokes code that supports both cartesian and cylindrical coordinates. There is a task where we have a geometry given by a STL file (in cartesian coordinates) and we need to find intersections of rays that we…
0
votes
3 answers

How can I avoid rounding off values in C?

i update my code for this : #include int IsRightTriangle(float x,float y,float z ) { int result; if( ((x*x)+(y*y)-(z*z)>0.999 && (x*x)+(y*y)-(z*z)<1) || ((x*x)+(z*z)-(y*y)>0.999 && (x*x)+(z*z)-(y*y)<1) ||…
proran
  • 9
  • 2
0
votes
0 answers

Add a buffer around a point in a ternary diagram

I have used ggtern to create the following ternary diagram: library(ggplot2) library(ggtern) NP_data <- data.frame( SE = c(15, 18, 57, 32), EE = c(52, 70, 8, 26), ES = c(33, 12, 35, 42), Perc = c(1, 1, 1, 1) ) MObj <- c(40,30,30,2) …
0
votes
0 answers

Calculating and Drawing a Triangle - Python Beginner

Please Please Please help :) The objective of this program is to randomly generate three side lengths of a triangle, check if those side lengths can make a triangle, calculate the angles of the triangle, and then draw the triangle with turtle. My…
0
votes
0 answers

How to print Paskal's Triangle in Java

Can I print this with triangle shape in Java? I tried to print this with only border "1"s: int[][] matrix = new int[5][5]; for (int i = 0; i < 5; i++) { matrix[i][i] = 1; matrix[i][0] = 1; }
0
votes
1 answer

How to draw a triangle given two points using an html canvas and typescript

I am sure I have missed something obvious, but I am trying to draw a quadratic curve between two points using an html canvas, for which I need a 'control point' to set the curve. The start and end point of the curve are known, the control point is…
m.tracey
  • 173
  • 1
  • 10
0
votes
0 answers

Clipping a 3d triangle with one vertex behind the camera

I'm working on a 3D renderer in MS-DOS in C, and I'm trying to fill 3D triangles onto the screen. Here's a screenshot of it working. It works fine, but when one vertex is behind the near clipping plane, it starts looking like this. Or maybe this, or…
0
votes
1 answer

Fuzzy logic membership functions

I have 2 types of fuzzy function => triangle and trapazoid .. the triangle function take value and 3 points ( a,b,c's of triangle) and the trapazoid take value and 4 points ( a,b,c,d's of trapazoid ) i use the line equation to calculate the fuzzy…
1 2 3
8 9