Skip to content

KaribDev/TriangleArea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

TriangleArea

This Python module can calculate the area of any type of triangle.

Formulas

|AB| = math.sqrt((x2 − x1) ** 2 + (y2 − y1) ** 2)
|BC| = math.sqrt((x3 − x2) ** 2 + (y3 − y2) ** 2)
|AC| = math.sqrt((x3 − x1) ** 2 + (y3 − y1) ** 2)
Half-perimeter p = (AB + BC + AC) / 2
Area = math.sqrt(p*(p-AB)(p-BC)(p-AC))

About

Area calculator for any Triangle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages