Skip to main content

@line/l2@0.1.0

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
58%
Published
4 months ago (0.1.0)
function L2
L2(
a: Point,
b: Point,
): number

Calculates the Euclidean distance between two points in a 2D space.

Parameters

a: Point
  • The first point.
b: Point
  • The second point.

Return Type

The Euclidean distance between the two points.

Add Package

deno add @line/l2

Import symbol

import { L2 } from "@line/l2";

Add Package

npx jsr add @line/l2

Import symbol

import { L2 } from "@line/l2";

Add Package

yarn dlx jsr add @line/l2

Import symbol

import { L2 } from "@line/l2";

Add Package

pnpm dlx jsr add @line/l2

Import symbol

import { L2 } from "@line/l2";

Add Package

bunx jsr add @line/l2

Import symbol

import { L2 } from "@line/l2";