UNPKG

@polygonjs/polygonjs

Version:

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

19 lines (18 loc) 428 B
"use strict"; import { NamedFunction2 } from "./_Base"; export class manhattanDistanceVector2 extends NamedFunction2 { static type() { return "manhattanDistanceVector2"; } func(v1, v2) { return v1.manhattanDistanceTo(v2); } } export class manhattanDistanceVector3 extends NamedFunction2 { static type() { return "manhattanDistanceVector3"; } func(v1, v2) { return v1.manhattanDistanceTo(v2); } }