Exemple #1
0
 public static bool operator >(fix16 self, double other)
 {
     return(self.value > LibFixMath.fix16_from_dbl(other));
 }
Exemple #2
0
 public fix16(double inValue)
 {
     value = LibFixMath.fix16_from_dbl(inValue);
 }
Exemple #3
0
 fix16 sdiv(double other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sdiv(value, LibFixMath.fix16_from_dbl(other));   return(ret);
 }
Exemple #4
0
 fix16 ssub(double other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -LibFixMath.fix16_from_dbl(other));   return(ret);
 }