search

Class myphysicslab.lab.model.FunctionVariable

Provided By
Extends
All Implemented Interfaces

A Variable whose value is defined by a JavaScript function.

new FunctionVariable( varsList, name, localName, fnc )

Parameters
varsListmyphysicslab.lab.model.VarsList

the VarsList which contains this Variable

namestring

the name of this Variable; this will be underscorized so the English name can be passed in here. See myphysicslab.lab.util.UtilityCore#toName.

localNamestring

the localized name of this Variable

fncfunction(): number

function that returns a value

Instance Methods