Skip to content

logical operators, BoolValue.select, .clamp, big Value base class rewrite and more

Choose a tag to compare

@FancyNeuron FancyNeuron released this 12 Jun 14:45
· 15 commits to main since this release
cc39dd1

New Features

  • Added logical operators &, |, ^ to BoolValue
  • Added BoolValue.select, which works as a sort of if-then-else
  • Added IntValue.clamp and FloatValue.clamp

Improvements

  • Big Value base classes rework. Made naming of base classes more coherent and made many not abstract (instead of abstrct transoform function, they take a callable)
  • Increased code test coverage to 100%
  • Make Observables inherit from each other, so functions that take an Observable will also take a BiObservable

Bug fixes

  • Fix bug in MappedValue (now called OneToOneValue), caused by improper initialization order of fields and init call

Breaking Changes

  • Renamed some classes, like MappedValue to OneToOneValue and CombinedTwoValues to TwoToOneValue