@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
19 lines (18 loc) • 340 B
JavaScript
;
import { NamedFunction2 } from "./_Base";
export class dotVector2 extends NamedFunction2 {
static type() {
return "dotVector2";
}
func(v1, v2) {
return v1.dot(v2);
}
}
export class dotVector3 extends NamedFunction2 {
static type() {
return "dotVector3";
}
func(v1, v2) {
return v1.dot(v2);
}
}