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