UNPKG

@polygonjs/polygonjs

Version:

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

29 lines (28 loc) 633 B
"use strict"; import { NamedFunction1, NamedFunction2, NamedFunction3 } from "./_Base"; export class planeSet extends NamedFunction3 { static type() { return "planeSet"; } func(normal, constant, target) { target.normal.copy(normal); target.constant = constant; return target; } } export class getPlaneNormal extends NamedFunction2 { static type() { return "getPlaneNormal"; } func(plane, target) { return target.copy(plane.normal); } } export class getPlaneConstant extends NamedFunction1 { static type() { return "getPlaneConstant"; } func(plane) { return plane.constant; } }