Class ScalarExponentiate
Returns the power of a base and exponent.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Math/Scalar")]
[UnitTitle("Exponentiate")]
[UnitOrder(105)]
public sealed class ScalarExponentiate : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
base
The base.
Declaration
[DoNotSerialize]
[PortLabel("x")]
public ValueInput base { get; }
Property Value
Type | Description |
---|---|
ValueInput |
exponent
The exponent.
Declaration
[DoNotSerialize]
[PortLabel("n")]
public ValueInput exponent { get; }
Property Value
Type | Description |
---|---|
ValueInput |
power
The power of base elevated to exponent.
Declaration
[DoNotSerialize]
[PortLabel("xⁿ")]
public ValueOutput power { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Exponentiate(Flow)
Declaration
public float Exponentiate(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
Single |