Calculate the Euclidean distance between two points with cartesian coordinates.
the x coordinate of the first point
the y coordinate of the first point
the x coordinate of the second point
the y coordinate of the second point
the distance between the two points
import { distance } from "@trashpanda001/helpers/number"distance(1, 2, 3, 4)// 2.8284271247461903distance (0, 0, 3, 4)// 5 Copy
import { distance } from "@trashpanda001/helpers/number"distance(1, 2, 3, 4)// 2.8284271247461903distance (0, 0, 3, 4)// 5
Calculate the Euclidean distance between two points with cartesian coordinates.