MathFunctions class
Properties
-
context
↔ Contexts
-
read / write, inherited
-
currentFileInfo
↔ FileInfo
-
read / write, inherited
-
hashCode
→ int
-
The hash code for this object. [...]
read-only, inherited
-
index
↔ int
-
read / write, inherited
-
less
↔ TreeApi
-
read / write, inherited
-
name
↔ String
-
read / write, inherited
-
registry
↔ Map<String, FunctionRegistryItem>
-
Method registry: { 'externalName': {'name': internalName, 'listArguments': false} }
read / write, inherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
abs(Node n)
→ Dimension
-
Calculates absolute value of a number. Keeps units as they are. [...]
-
acos(Node n)
→ Dimension
-
Calculates arccosine (inverse of cosine) function.
Returns number in radians e.g. a number between 0 and π.
Parameters:
number - a floating point number from
-1, 1
interval.
Returns: number
Example:
acos(0.5403023058681398)
Output: 1rad
-
asin(Node n)
→ Dimension
-
Calculates arcsine (inverse of sine) function.
Returns number in radians e.g. a number between -π/2 and π/2. [...]
-
atan(Node n)
→ Dimension
-
Calculates arctangent (inverse of tangent) function.
Returns number in radians e.g. a number between -π/2 and π/2. [...]
-
call(List<Node> args)
→ dynamic
-
Call the last valid name of method
inherited
-
ceil(Node n)
→ Dimension
-
Rounds up to the next highest integer. [...]
-
cos(Node n)
→ Dimension
-
Calculates cosine function.
Assumes radians on numbers without units.
Parameters:
number - a floating point number.
Returns: number
Example:
cos(1deg) // cosine of 1 degree
Output: 0.9998476951563913;
-
floor(Node n)
→ Dimension
-
Rounds down to the next lowest integer. [...]
-
init(Contexts context, int index, FileInfo currentFileInfo)
→ void
-
Config functions with the necessarry information for processing
inherited
-
isValid(String name)
→ bool
-
Check if name is a method name available
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a non-existent method or property is accessed. [...]
inherited
-
round(Node n, [Node f])
→ Dimension
-
Applies rounding. [...]
-
sin(Node n)
→ Dimension
-
Calculates sine function.
Assumes radians on numbers without units.
Parameters:
number - a floating point number.
Returns: number
Example:
sin(1deg); // sine of 1 degree
Output: 0.01745240643728351;
-
sqrt(Node n)
→ Dimension
-
Calculates square root of a number. Keeps units as they are. [...]
-
tan(Node n)
→ Dimension
-
Calculates tangent function.
Assumes radians on numbers without units.
Parameters:
number - a floating point number.
Returns: number
Example:
tan(1deg) // tangent of 1 degree
Output: 0.017455064928217585
-
toString()
→ String
-
Returns a string representation of this object.
inherited