@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 = "radToDeg";
export class RadToDegJsNode extends MathFunctionArg1OperationFactory("radToDeg", {
inputPrefix: "in",
out: "out"
}) {
_coreFunction(shadersCollectionController) {
Poly.namedFunctionsRegister.getFunction(FUNCTION_NAME, this, shadersCollectionController).asString("");
return FUNCTION_NAME;
}
}