Class BinaryComparisonUnit
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Logic")]
[UnitDisplay(showTitle = false)]
[Obsolete("Use the new reflected logic operators instead.")]
public abstract class BinaryComparisonUnit : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Properties
a
The first input.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true)]
public ValueInput a { get; }
Property Value
Type | Description |
---|---|
ValueInput |
b
The second input.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true)]
public ValueInput b { get; }
Property Value
Type | Description |
---|---|
ValueInput |
comparison
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true)]
public virtual ValueOutput comparison { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
numeric
Whether the compared inputs are numbers.
Declaration
[Serialize]
[Inspectable]
[InspectorToggleLeft]
public bool numeric { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
outputKey
Declaration
protected virtual string outputKey { get; }
Property Value
Type | Description |
---|---|
String |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
GenericComparison(Object, Object)
Declaration
protected abstract bool GenericComparison(object a, object b)
Parameters
Type | Name | Description |
---|---|---|
Object | a | |
Object | b |
Returns
Type | Description |
---|---|
Boolean |
NumericComparison(Single, Single)
Declaration
protected abstract bool NumericComparison(float a, float b)
Parameters
Type | Name | Description |
---|---|---|
Single | a | |
Single | b |
Returns
Type | Description |
---|---|
Boolean |