Rasagar/Library/PackageCache/com.unity.visualeffectgraph/Documentation~/Operator-Exp.md
2024-08-26 23:07:20 +03:00

2.0 KiB

Exp

Menu Path : Operator > Math > Exp

The Exp Operator raises a base number to a specified power. It supports three common bases: Exp, Exp2, and Exp10.

Exp raises the number E, which is a mathematical constant approximately equal to 2.718281828459, to a specified power. Exponential functions with a base E are frequently used in mathematics and science.

Exp2 raises the number 2 to a specified power. For example, Exp2(3) equals to 2*2*2, which is 8.

Exp10 raises the number 10 to a specified power. For example, Exp10(3) equals to 10*10*10, which is 1000.

Operator settings

Property Type Description
Base Enum Specify the base for the Operator to use. The options are:
Base 2: Raises the number 2 to the power you specify in X.
Base 10: Raises the number 10 to the power you specify in X.
Base E: Raises E (2.718... ) to the power you specify in X.

Operator properties

Input Type Description
X Configurable The power to raise the base to.
Output Type Description
Out Dependent The base to the power of X.

Operator configuration

To view the Operator's configuration, click the cog icon in the Operator's header. Use the drop-down to select the type for the X port. For the list of types this property supports, see Available types.

Available types

You can use the following types for your input ports:

  • float
  • Position
  • Vector
  • Vector2
  • Vector3