VisualScriptMathConstant¶
Inherits: VisualScriptNode < Resource < Reference < Object
Commonly used mathematical constants.
Description¶
Provides common math constants, such as Pi, on an output Data port.
Input Ports:
none
Output Ports:
Data (variant):
get
Properties¶
|
Enumerations¶
enum MathConstant:
MathConstant MATH_CONSTANT_ONE = 0
Unity: 1
.
MathConstant MATH_CONSTANT_PI = 1
Pi: 3.141593
.
MathConstant MATH_CONSTANT_HALF_PI = 2
Pi divided by two: 1.570796
.
MathConstant MATH_CONSTANT_TAU = 3
Tau: 6.283185
.
MathConstant MATH_CONSTANT_E = 4
Mathematical constant e
, the natural log base: 2.718282
.
MathConstant MATH_CONSTANT_SQRT2 = 5
Square root of two: 1.414214
.
MathConstant MATH_CONSTANT_INF = 6
Infinity: inf
.
MathConstant MATH_CONSTANT_NAN = 7
Not a number: nan
.
MathConstant MATH_CONSTANT_MAX = 8
Represents the size of the MathConstant enum.
Property Descriptions¶
MathConstant constant = 0
void set_math_constant ( MathConstant value )
MathConstant get_math_constant ( )
The math constant.