triangle-area

calculate area of triangle from 3 sides using Heron's formula

Usage no npm install needed!

<script type="module">
  import triangleArea from 'https://cdn.skypack.dev/triangle-area';
</script>

README

triangle-area

Calculate the area of a triangle from 3 sides using Heron's Formula

example

var Heron = require('triangle-size')
var area = Heron(8.5, 8.9, 3.0)
// and the area of my mainsail (sq meters) is...
// => 12.739795916732724

License

MIT