distanceBetween

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.math

Get the distance between two points

Params

  1. point1*-Point

    The point 1, x and y value

  2. point2*-Point

    The point 2, x and y value

Return

  1. -Number

    The distance between the two points

Example

import { distanceBetween } from '@blackbyte/sugar/geom'
distanceBetween({
	x: 10, y: 20
}, {
	x: 10, y: 30
}) // 10

Todo

  • testsnormal