Browse Source

Math: doc++

pull/605/head
Vladimír Vondruš 4 years ago
parent
commit
7bcdf4af4e
  1. 10
      src/Magnum/Math/BitVector.h

10
src/Magnum/Math/BitVector.h

@ -72,11 +72,11 @@ The class implements @cpp && @ce, @cpp || @ce and @cpp ! @ce operators
component-wise, in other words equivalently to @cpp & @ce, @cpp | @ce and component-wise, in other words equivalently to @cpp & @ce, @cpp | @ce and
@cpp ~ @ce. This is done in order to have consistent behavior with boolean @cpp ~ @ce. This is done in order to have consistent behavior with boolean
operations on scalar types --- in the following example, it causes the final operations on scalar types --- in the following example, it causes the final
conversion to @cpp bool @ce done at the end (instead of it happening already in conversion to @cpp bool @ce to be done at the end (instead of it happening
the boolean subexpressions). Combined with @ref operator bool() returning already in the boolean subexpressions). Combined with @ref operator bool()
@cpp true @ce only if all bits are set, this means the condition will be passed returning @cpp true @ce only if all bits are set, this means the condition will
only if @cpp b @ce is around @cpp a @ce in *all dimensions*, and work the same be passed only if @cpp b @ce is around @cpp a @ce in *all dimensions*, and work
way as if the variables were just scalars: the same way as if the variables were just scalars:
@snippet MagnumMath.cpp BitVector-boolean @snippet MagnumMath.cpp BitVector-boolean

Loading…
Cancel
Save