@buckneri/js-lib-math

Functions for calculations

Usage no npm install needed!

<script type="module">
  import buckneriJsLibMath from 'https://cdn.skypack.dev/@buckneri/js-lib-math';
</script>

README

js-lib-math

Functions for calculations

Install

npm i @buckneri/js-lib-math

Reference ยท Source

  • circleArea (radius)
  • circleRadius (area):
  • countDigit (significant digits)
  • cubedRoot (n)
  • fitToQuadrant (width, height, n)
  • rectContain (shape_extent, point)
  • rectIntersect (shape_extent1, shape_extent2)
  • round (value, precision)
  • decasteljau (points, t)
  • pointsToCommand (points)
  • splitCurveAsPoints (points, segmentCount)
  • splitCurve (commandStart, commandEnd, segmentCount)
  • stddev (array of values)
  • sumValues (array of values)
  • triangleArea (a, b, c)
  • triangleHeight (a, b, c)