Rakesh9100 / CalcDiverse

CalcDiverse is a customized collection of calculators for various aspects of mathematics. Individuals with basic web development knowledge can create distinctive calculators and submit pull requests.
https://calcdiverse.netlify.app
Apache License 2.0
149 stars 399 forks source link

[Feature] Add Centroid Of A Triangle Calculator #1488

Closed SumithThota closed 1 month ago

SumithThota commented 2 months ago

Description

This calculator aims to find centroid of a triangle

Importance of centroid

  1. Centroid divides each median in a 2:1 ratio.
  2. Centroid is the center of mass or balance point of the triangle.
  3. The centroid is the intersection point of the three lines that divide the triangle into three equal areas.

Used in:

  1. Mechanics:
  2. Geometry
  3. Engineering

Screenshots

Note:

Here A,B,C are the three vertices of a triangle Point G is the centroid of that triangle

Screenshot 2024-06-28 164857

Checklist

Code of Conduct

github-actions[bot] commented 2 months ago

Hey @SumithThota, Welcome to the project CalcDiverse! 🎊 Thanks for opening an issue! 🙌 Please wait for the issue to be assigned. Happy Coding!! ✨

jessicachawla commented 2 months ago

All you give a picture with your output? If yes, will the sides have length written along with it? Also will you be taking coordinates as input or length of the sides?

SumithThota commented 2 months ago

Hi @jessicachawla Yes the user need to enter co-ordinates as input User need to enter 3 coorinates (x ,y) since the triangle as 3 vertices

jessicachawla commented 2 months ago

Are you giving some sort of a diagram?

SumithThota commented 2 months ago

Sorry no, As the user enters data then centroid points will be the output

bharat-c27 commented 2 months ago

@jessicachawla According to my understanding he is trying to tell that

Inputs : 1) Take inputs for 3 vertices of the triangle A(x1,y1) , B(x2,y2), C (x3, y3)

Calculations : 1) x = ( x1 + x2+ x3 ) / 3 2) y = ( y1 + y2+ y3 ) / 3

The centroid coordinates will be G (x,y)

Output : 1) The output will be centroid coordinates G(x,y)

@Rakesh9100 I am excited to contribute to the issue which have been assigned a label up for grab please can you assign it to me https://github.com/Rakesh9100/CalcDiverse/issues/1095

jessicachawla commented 2 months ago

@SumithThota pls consider giving a diagram as well

SumithThota commented 2 months ago

@jessicachawla Yes ok I will try my level best

jessicachawla commented 2 months ago

@Rakesh9100 this issue can be assigned

SumithThota commented 2 months ago

@jessicachawla Check this output Screenshot 2024-07-03 064227

jessicachawla commented 2 months ago

Mention the centroid coordinates on the side of the triangle in the diagram. Rest looks good. Well done!

SumithThota commented 2 months ago

@jessicachawla ok fine I will take care of it. You haven't assigned the issue till now Please assign this issue to me

SumithThota commented 2 months ago

@jessicachawla I am stilling waiting for your response Please assign me this issue and let me proceed.

Rakesh9100 commented 2 months ago

Pls go ahead @SumithThota

SumithThota commented 2 months ago

Hello, @Rakesh9100 I have successfully completed the task check it over here #1548 and Please add appropriate labels to it

github-actions[bot] commented 1 month ago

Hello @SumithThota! Your issue #1488 has been closed. Thank you for your contribution!! 🙌