Commonly used mathematical constants.
    public class VisualScriptMathConstant : VisualScriptNode

Provides common math constants, such as Pi or Euler’s constant, on an output Data port.

Input Ports:

none

Output Ports:

  • Data (variant): get

Inheritance Chain

Constructors

    public VisualScriptMathConstant()

Properties

    public MathConstant Constant { get; set; }

The math constant.

Methods

    public MathConstant GetMathConstant()

Getter for Constant

    public void SetMathConstant(MathConstant which)

Setter for Constant

Inner Types

MathConstant

Name Value Description
One 0 Unity: [code]1[/code]
Pi 1 Pi: [code]3.141593[/code]
HalfPi 2 Pi divided by two: [code]1.570796[/code]
Tau 3 Tau: [code]6.283185[/code]
E 4 Natural log: [code]2.718282[/code]
Sqrt2 5 Square root of two: [code]1.414214[/code]
Inf 6 Infinity: [code]inf[/code]
Nan 7 Not a number: [code]nan[/code]
Max 8  
Tags: