Class Modulo<T>
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[Obsolete("Use strongly-typed Modulo units instead.")]
public abstract class Modulo<T> : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Type Parameters
Name | Description |
---|---|
T |
Properties
defaultDividend
Declaration
[DoNotSerialize]
protected virtual T defaultDividend { get; }
Property Value
Type | Description |
---|---|
T |
defaultDivisor
Declaration
[DoNotSerialize]
protected virtual T defaultDivisor { get; }
Property Value
Type | Description |
---|---|
T |
dividend
The dividend (or numerator).
Declaration
[DoNotSerialize]
[UnitPortDisplay("A", primary = true)]
public ValueInput dividend { get; }
Property Value
Type | Description |
---|---|
ValueInput |
divisor
The divisor (or denominator).
Declaration
[DoNotSerialize]
[UnitPortDisplay("B", primary = true)]
public ValueInput divisor { get; }
Property Value
Type | Description |
---|---|
ValueInput |
remainder
The remainder of the division of dividend and divison (numerator / denominator).
Declaration
[DoNotSerialize]
[UnitPortDisplay("A % B", primary = true)]
public ValueOutput remainder { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
Operation(T, T)
Declaration
public abstract T Operation(T divident, T divisor)
Parameters
Type | Name | Description |
---|---|---|
T | divident | |
T | divisor |
Returns
Type | Description |
---|---|
T |
Operation(Flow)
Declaration
public T Operation(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
T |