• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

thednp / svg-path-commander / 15316798182

29 May 2025 05:13AM UTC coverage: 100.0% (+2.2%) from 97.839%
15316798182

push

github

thednp
update deps, workflows, tests, bump

729 of 729 branches covered (100.0%)

Branch coverage included in aggregate %.

1400 of 1400 relevant lines covered (100.0%)

3288.25 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/math/distanceSquareRoot.ts
1
import { type PointTuple } from "../types";
2

3
/**
4
 * Returns the square root of the distance
5
 * between two given points.
6
 *
7
 * @param a the first point coordinates
8
 * @param b the second point coordinates
9
 * @returns the distance value
10
 */
11
const distanceSquareRoot = (a: PointTuple, b: PointTuple) => {
2✔
12
  return Math.sqrt(
261✔
13
    (a[0] - b[0]) * (a[0] - b[0]) + (a[1] - b[1]) * (a[1] - b[1]),
14
  );
15
};
16

17
export default distanceSquareRoot;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc