VisualScriptMathConstant

    Category: Core

    Commonly used mathematical constants.

    • MATH_CONSTANT_ONE = 0 — Unity:
    • MATH_CONSTANT_PI = 1 — Pi: 3.141593
    • MATH_CONSTANT_HALF_PI = 2 — Pi divided by two: 1.570796
    • MATH_CONSTANT_TAU = 3 — Tau:
    • MATH_CONSTANT_SQRT2 = 5 — Square root of two:
    • MATH_CONSTANT_INF = 6 — Infinity: inf
    • MATH_CONSTANT_NAN = 7 — Not a number: nan
    • MATH_CONSTANT_MAX = 8 — Represents the size of the enum.

    Provides common math constants, such as Pi, on an output Data port.

    Input Ports:

    Output Ports:

    Setterset_math_constant(value)
    Getterget_math_constant()

    The math constant.