Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "nodes/math"

Index

Variables

Variables

Const add

add: NodeFactory<number> = node(map((ports: IObjectOf<number>) => {let acc = 0;let v;for (let p in ports) {if ((v = ports[p]) == null) return;acc += v;}return acc;}))

Addition node.

Inputs: any

Const div

div: NodeFactory<number> = node2(map((ports: IObjectOf<number>) => ports.a / ports.b))

Division node.

Inputs: a, b

Const mul

mul: NodeFactory<number> = node(map((ports: IObjectOf<number>) => {let acc = 1;let v;for (let p in ports) {if ((v = ports[p]) == null) return;acc *= v;}return acc;}))

Multiplication node.

Inputs: any

Const sub

sub: NodeFactory<number> = node2(map((ports: IObjectOf<number>) => ports.a - ports.b))

Subtraction node.

Inputs: a, b

Generated using TypeDoc