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
8
votes
2 answers

Custom shape of PopupMenuButton in flutter

I wan to change the shape of my PopupMenuButton in flutter, want to add a triangle on top as shown in below picture, I have spent a lot of time on google but no achievement please help me out I am new to flutter so I do not know how to change this…
Majid Ali
  • 107
  • 1
  • 7
3
votes
2 answers

How to calculate coordinates of 6 point of intersection between a circle and a equilateral triangle?

I know of an equilateral triangle the center (cx,cy) and the radius (r) of a blue circle which circumscribed it. If I draw a green circle of any radius (radius), assuming the circle is large enough to have this intersection, can I get the…
Richnou
  • 106
  • 8
2
votes
0 answers

Can't find correct MTV(Minimum Translation Vector) of AABB/Triangle Intersection

My MTV (Minimum Translation Vector) in AABB/Triangle intersection gives incorrect result on corners by Y axis. How can I fix it? Current result: This is my code: public static bool BoxTriangleIntersection(Box box, Triangle triangle, out Vector3…
Rede Boy
  • 21
  • 2
2
votes
1 answer

Adding a shaded triangle to a ggplot2 plot

I am actually trying to build a graph showing the fiscal space of a country, so that it looks like But for now it looks like I don't know how to add the transparent triangle like in the model. I tried with several functions but I didn't manage to…
2
votes
1 answer

Floyd's triangle with math, not strings

I'm looking at a challenge to build a Floyd's triangle out of integers using only arithmetic operators and a single for-loop. There are hundreds of tutorials using dual for-loops and string operations, but I haven't seen anything using…
NickNaym99
  • 35
  • 5
2
votes
0 answers

How to solve this triangle problem in Visual Basic? I don't know if I'm doing it right

Make a program that reads a positive integer no greater than 10, and prints a triangle of numbers as follows: If the number read were 5, then it should print: 1 22 333 4444 55555 The program must reread another number until the number entered is…
2
votes
1 answer

Check if mouse is in triangle with three x,y coordinates

Say I have a triangle made with 3 points. makeTriangle(x1, y1, x2, y2, x3, y3); How do I check if said triangle contains the a certain set of points? I'm trying to make an interactive UI with P5.js that includes an arrow that allows you to resize…
KoderM
  • 382
  • 2
  • 15
2
votes
1 answer

How to, given UV on a triangle, find XYZ?

I have a triangle, each point of which is defined by a position (X,Y,Z) and a UV coordinate (U,V): struct Vertex { Vector mPos; Point mUV; inline Vector& ToVector() {return mPos;} inline Vector& ToUV() {return mUV;} }; With this…
KiraHoneybee
  • 495
  • 3
  • 12
2
votes
1 answer

How is this code even working? Pitch and Yaw

I was recently looking up how to create simple bot to the game and there are 2 methods to do that 1 is to calculate pitch and yaw using atan2 and sin for example but there's also another method how peoples calculate it and my question is how it…
Awynon X
  • 39
  • 3
2
votes
2 answers

How to find the direction of triangles in an image using OpenCV

I am trying to find the direction of triangles in an image. below is the image: These triangles are pointing upward/downward/leftward/rightward. This is not the actual image. I have already used canny edge detection to find edges then contours and…
UJM
  • 167
  • 8
2
votes
1 answer

How to divide second column by first column in dataframe?

DP 1 DP 2 DP 3 DP 4 DP 5 DP 6 DP 7 DP 8 DP 9 DP 10 3,57,848 11,24,788 17,35,330 22,18,270 27,45,596 33,19,994 34,66,336 36,06,286 38,33,515 39,01,463 3,52,118 …
2
votes
1 answer

Chainladder: does it work with multi-triangles with non-aligned valuation periods?

Trying to extract properties from the triangle / development class(e.g..age_to_age) give it was parameterized with multiple triangles each with different valuation dates. This example illustrates the issue: import chainladder as cl import pandas as…
so_me
  • 21
  • 1
2
votes
1 answer

How to iterate through columns of the dataframe?

I want go through the all the columns of the dataframe. so that I will get a particular data of the column, using these data I have to calculate for another dataframe. Here i have : DP1 DP2 DP3 DP4 …
Devil
  • 83
  • 8
1
vote
1 answer

3d triangle approximation with rectangular prisms

I am trying to approximate 3d triangles with rectangular prisms but I cant figure out the math Im using lua Ive tried flattening the triangle to a 2d plane and approximating the triangles with normal rectangles and then applying rotation again but…
1
vote
1 answer

How to draw a triangle in qt 3d on a Qt3DExtras::Qt3DWindow?

I'm trying to draw a triangle in qt6 3d, but i got this error in console... Notice that in my project i'm drawing other objects using the classic mesh classes from Qt and everything works perfect.. Failed to create input layout: Error 0x80070057:…
Razvan B
  • 11
  • 2
1
2 3
8 9