예제 #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);
 }