Пример #1
0
 public fix16 sin()
 {
     return(new fix16(LibFixMath.fix16_sin(value)));
 }
Пример #2
0
 public static bool operator >(fix16 self, double other)
 {
     return(self.value > LibFixMath.fix16_from_dbl(other));
 }
Пример #3
0
 public static bool operator >(fix16 self, int16_t other)
 {
     return(self.value > LibFixMath.fix16_from_int(other));
 }
Пример #4
0
 fix16 sdiv(int16_t other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sdiv(value, LibFixMath.fix16_from_int(other));   return(ret);
 }
Пример #5
0
 public static bool operator <(fix16 self, float other)
 {
     return(self.value < LibFixMath.fix16_from_float(other));
 }
Пример #6
0
 public fix16 atan2(fix16 inY)
 {
     return(new fix16(LibFixMath.fix16_atan2(value, inY.value)));
 }
Пример #7
0
 fix16 ssub(double other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -LibFixMath.fix16_from_dbl(other));   return(ret);
 }
Пример #8
0
 fix16 sdiv(fix16_t other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sdiv(value, other);                   return(ret);
 }
Пример #9
0
 public fix16(int16_t inValue)
 {
     value = LibFixMath.fix16_from_int(inValue);
 }
Пример #10
0
 fix16 smul(fix16 other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_smul(value, other.value);             return(ret);
 }
Пример #11
0
 public fix16(double inValue)
 {
     value = LibFixMath.fix16_from_dbl(inValue);
 }
Пример #12
0
 fix16 ssub(int16_t other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -LibFixMath.fix16_from_int(other));   return(ret);
 }
Пример #13
0
 fix16 ssub(float other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -LibFixMath.fix16_from_float(other)); return(ret);
 }
Пример #14
0
 public fix16(float inValue)
 {
     value = LibFixMath.fix16_from_float(inValue);
 }
Пример #15
0
 public fix16 acos()
 {
     return(new fix16(LibFixMath.fix16_acos(value)));
 }
Пример #16
0
 fix16 sdiv(double other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sdiv(value, LibFixMath.fix16_from_dbl(other));   return(ret);
 }
Пример #17
0
 public fix16 atan()
 {
     return(new fix16(LibFixMath.fix16_atan(value)));
 }
Пример #18
0
 fix16 sdiv(float other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sdiv(value, LibFixMath.fix16_from_float(other)); return(ret);
 }
Пример #19
0
 public fix16 sqrt()
 {
     return(new fix16(LibFixMath.fix16_sqrt(value)));
 }
Пример #20
0
 fix16 ssub(fix16_t other)
 {
     fix16 ret = (fix16)LibFixMath.fix16_sadd(value, -other);                   return(ret);
 }