UNPKG

@polygonjs/polygonjs

Version:

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

27 lines (26 loc) 587 B
"use strict"; import { NamedFunction2 } from "./_Base"; export class normalizeVector2 extends NamedFunction2 { static type() { return "normalizeVector2"; } func(src, target) { return target.copy(src).normalize(); } } export class normalizeVector3 extends NamedFunction2 { static type() { return "normalizeVector3"; } func(src, target) { return target.copy(src).normalize(); } } export class normalizeVector4 extends NamedFunction2 { static type() { return "normalizeVector4"; } func(src, target) { return target.copy(src).normalize(); } }