]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdMathOperation.cxx
#3280 BBTK Feature New Normal - MathOperation
[bbtk.git] / packages / std / src / bbstdMathOperation.cxx
index fdedc101c8e7997c6978e0a25f7193d024df4e3a..ee22c24468cf353f5bb8429bf46f8046a796848a 100644 (file)
@@ -85,6 +85,8 @@ void MathOperation::Process()
     if (bbGetInputType()==17) bbSetOutputOut( std::max( bbGetInputIn1(),bbGetInputIn2() )  );
     if (bbGetInputType()==18) bbSetOutputOut( fabs( bbGetInputIn1() ) );
     if (bbGetInputType()==19) bbSetOutputOut(  (int)bbGetInputIn1() % (int)bbGetInputIn2() );
+    if (bbGetInputType()==20) if (bbGetInputIn1()<(int)bbGetInputIn2()) { bbSetOutputOut(1); } else { bbSetOutputOut(0); } ;
+    if (bbGetInputType()==21) if (bbGetInputIn1()>(int)bbGetInputIn2()) { bbSetOutputOut(1); } else { bbSetOutputOut(0); } ;
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)