UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

19 lines (18 loc) 374 B
"use strict"; import { NamedFunction2 } from "./_Base"; export class distanceVector2 extends NamedFunction2 { static type() { return "distanceVector2"; } func(v1, v2) { return v1.distanceTo(v2); } } export class distanceVector3 extends NamedFunction2 { static type() { return "distanceVector3"; } func(v1, v2) { return v1.distanceTo(v2); } }