shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
distanceBetween
Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.math
Get the distance between two points
Params
- point1*-Point
The point 1, x and y value
- point2*-Point
The point 2, x and y value
Return
- -Number
The distance between the two points
Example
import { distanceBetween } from '@blackbyte/sugar/geom'
distanceBetween({
x: 10, y: 20
}, {
x: 10, y: 30
}) // 10Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space