Class Round<TInput, TOutput>
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[Obsolete("Use Mathf Round/Floor/Ceil instead.")]
public abstract class Round<TInput, TOutput> : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Type Parameters
| Name | Description |
|---|---|
| TInput | |
| TOutput |
Properties
input
The value to round.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false, primary = true)]
public ValueInput input { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
output
The rounded value.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false, primary = true)]
public ValueOutput output { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
rounding
The rounding mode.
Declaration
[Inspectable]
[UnitSettingDisplay]
[Serialize]
public Round<TInput, TOutput>.Rounding rounding { get; set; }
Property Value
| Type | Description |
|---|---|
| Round.Rounding<> |
Methods
AwayFromZero(TInput)
Declaration
protected abstract TOutput AwayFromZero(TInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| TInput | input |
Returns
| Type | Description |
|---|---|
| TOutput |
Ceiling(TInput)
Declaration
protected abstract TOutput Ceiling(TInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| TInput | input |
Returns
| Type | Description |
|---|---|
| TOutput |
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
Floor(TInput)
Declaration
protected abstract TOutput Floor(TInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| TInput | input |
Returns
| Type | Description |
|---|---|
| TOutput |
Operation(Flow)
Declaration
public TOutput Operation(Flow flow)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow |
Returns
| Type | Description |
|---|---|
| TOutput |