@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
14 lines (13 loc) • 466 B
JavaScript
;
import { Poly } from "../../Poly";
import { MathFunctionArg1OperationFactory } from "./_Math_Arg1Operation";
const FUNCTION_NAME = "degToRad";
export class DegToRadJsNode extends MathFunctionArg1OperationFactory("degToRad", {
inputPrefix: "in",
out: "out"
}) {
_coreFunction(shadersCollectionController) {
Poly.namedFunctionsRegister.getFunction(FUNCTION_NAME, this, shadersCollectionController).asString("");
return FUNCTION_NAME;
}
}