class Fox::FXQuatf

Public Class Methods

arc(*args) click to toggle source
# File lib/fox16/aliases.rb, line 3322
def FXQuatf.arc(*args)
  FXQuatf.new.arc!(*args)
end
lerp(*args) click to toggle source
# File lib/fox16/aliases.rb, line 3325
def FXQuatf.lerp(*args)
  FXQuatf.new.lerp!(*args)
end
new(*args) click to toggle source
SWIGINTERN VALUE _wrap_new_FXQuatf(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_FXQuatf__SWIG_0(nargs, args, self);
  }
  if ((argc >= 1) && (argc <= 2)) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      if (argc <= 1) {
        return _wrap_new_FXQuatf__SWIG_1(nargs, args, self);
      }
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_FXQuatf__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXMat3f, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_FXQuatf__SWIG_4(nargs, args, self);
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3f, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3f, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_new_FXQuatf__SWIG_3(nargs, args, self);
        }
      }
    }
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_float(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_float(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_FXQuatf__SWIG_2(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_float(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_float(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_float(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_FXQuatf__SWIG_5(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "FXQuatf.new", 
    "    FXQuatf.new()\n"
    "    FXQuatf.new(FXVec3f const &axis, FXfloat phi)\n"
    "    FXQuatf.new(FXfloat roll, FXfloat pitch, FXfloat yaw)\n"
    "    FXQuatf.new(FXVec3f const &ex, FXVec3f const &ey, FXVec3f const &ez)\n"
    "    FXQuatf.new(FXMat3f const &mat)\n"
    "    FXQuatf.new(FXfloat x, FXfloat y, FXfloat z, FXfloat w)\n");
  
  return Qnil;
}

Public Instance Methods

*(*args) click to toggle source
SWIGINTERN VALUE _wrap_FXQuatf___mul__(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 3) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatf, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXQuatf, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_FXQuatf___mul____SWIG_0(nargs, args, self);
      }
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatf, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3f, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_FXQuatf___mul____SWIG_1(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "__mul__", 
    "    FXQuatf __mul__(FXQuatf const &other)\n"
    "    FXVec3f __mul__(FXVec3f const &vec)\n");
  
  return Qnil;
}
adjust!(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_adjustN___(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXQuatf *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","adjust", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = (FXQuatf *) &(arg1)->adjust();
  vresult = FXRbGetRubyObj(result, "FXQuatf *");
  return vresult;
fail:
  return Qnil;
}
arc!(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_arcN___(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  FXVec3f *arg2 = 0 ;
  FXVec3f *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXQuatf *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","arc", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  {
    if (TYPE(argv[0]) == T_ARRAY) {
      arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)));
    } else {
      FXVec3f *p;
      SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1);
      arg2 = new FXVec3f(*p);
    }
  }
  {
    if (TYPE(argv[1]) == T_ARRAY) {
      arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2)));
    } else {
      FXVec3f *p;
      SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1);
      arg3 = new FXVec3f(*p);
    }
  }
  result = (FXQuatf *) &(arg1)->arc((FXVec3f const &)*arg2,(FXVec3f const &)*arg3);
  vresult = FXRbGetRubyObj(result, "FXQuatf *");
  delete arg2;
  delete arg3;
  return vresult;
fail:
  delete arg2;
  delete arg3;
  return Qnil;
}
conj(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_conj(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXQuatf result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","conj", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = ((FXQuatf const *)arg1)->conj();
  {
    FXQuatf *resultptr = new FXQuatf(result);
    vresult = FXRbGetRubyObj(resultptr, "FXQuatf *");
  }
  return vresult;
fail:
  return Qnil;
}
exp(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_exp(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXQuatf result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","exp", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = ((FXQuatf const *)arg1)->exp();
  {
    FXQuatf *resultptr = new FXQuatf(result);
    vresult = FXRbGetRubyObj(resultptr, "FXQuatf *");
  }
  return vresult;
fail:
  return Qnil;
}
getAxes(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_getAxes(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getAxes", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = (VALUE)FXQuatf_getAxes((FXQuatf const *)arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
getAxisAngle(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_getAxisAngle(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getAxisAngle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = (VALUE)FXQuatf_getAxisAngle((FXQuatf const *)arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
getRollPitchYaw(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_getRollPitchYaw(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getRollPitchYaw", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = (VALUE)FXQuatf_getRollPitchYaw((FXQuatf const *)arg1);
  vresult = result;
  return vresult;
fail:
  return Qnil;
}
getXAxis(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_getXAxis(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXVec3f > result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getXAxis", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = ((FXQuatf const *)arg1)->getXAxis();
  {
    FXVec3f* resultptr = new FXVec3f(result);
    vresult = FXRbGetRubyObj(resultptr, "FXVec3f *");
  }
  return vresult;
fail:
  return Qnil;
}
getYAxis(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_getYAxis(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXVec3f > result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getYAxis", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = ((FXQuatf const *)arg1)->getYAxis();
  {
    FXVec3f* resultptr = new FXVec3f(result);
    vresult = FXRbGetRubyObj(resultptr, "FXVec3f *");
  }
  return vresult;
fail:
  return Qnil;
}
getZAxis(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_getZAxis(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  SwigValueWrapper< FXVec3f > result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","getZAxis", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = ((FXQuatf const *)arg1)->getZAxis();
  {
    FXVec3f* resultptr = new FXVec3f(result);
    vresult = FXRbGetRubyObj(resultptr, "FXVec3f *");
  }
  return vresult;
fail:
  return Qnil;
}
invert(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_invert(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXQuatf result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","invert", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = ((FXQuatf const *)arg1)->invert();
  {
    FXQuatf *resultptr = new FXQuatf(result);
    vresult = FXRbGetRubyObj(resultptr, "FXQuatf *");
  }
  return vresult;
fail:
  return Qnil;
}
lerp!(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_lerpN___(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  FXQuatf *arg2 = 0 ;
  FXQuatf *arg3 = 0 ;
  FXfloat arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 ;
  int res3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  FXQuatf *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","lerp", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXQuatf,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXQuatf const &","lerp", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatf const &","lerp", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< FXQuatf * >(argp2);
  res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXQuatf,  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXQuatf const &","lerp", 3, argv[1] )); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatf const &","lerp", 3, argv[1])); 
  }
  arg3 = reinterpret_cast< FXQuatf * >(argp3);
  ecode4 = SWIG_AsVal_float(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","lerp", 4, argv[2] ));
  } 
  arg4 = static_cast< FXfloat >(val4);
  result = (FXQuatf *) &(arg1)->lerp((FXQuatf const &)*arg2,(FXQuatf const &)*arg3,arg4);
  vresult = FXRbGetRubyObj(result, "FXQuatf *");
  return vresult;
fail:
  return Qnil;
}
log(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_log(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXQuatf result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","log", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = ((FXQuatf const *)arg1)->log();
  {
    FXQuatf *resultptr = new FXQuatf(result);
    vresult = FXRbGetRubyObj(resultptr, "FXQuatf *");
  }
  return vresult;
fail:
  return Qnil;
}
setAxes(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_setAxes(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  FXVec3f *arg2 = 0 ;
  FXVec3f *arg3 = 0 ;
  FXVec3f *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","setAxes", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  {
    if (TYPE(argv[0]) == T_ARRAY) {
      arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)));
    } else {
      FXVec3f *p;
      SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1);
      arg2 = new FXVec3f(*p);
    }
  }
  {
    if (TYPE(argv[1]) == T_ARRAY) {
      arg3 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[1], 0)), NUM2DBL(rb_ary_entry(argv[1], 1)), NUM2DBL(rb_ary_entry(argv[1], 2)));
    } else {
      FXVec3f *p;
      SWIG_ConvertPtr(argv[1], (void **)&p, SWIGTYPE_p_FXVec3f, 1);
      arg3 = new FXVec3f(*p);
    }
  }
  {
    if (TYPE(argv[2]) == T_ARRAY) {
      arg4 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[2], 0)), NUM2DBL(rb_ary_entry(argv[2], 1)), NUM2DBL(rb_ary_entry(argv[2], 2)));
    } else {
      FXVec3f *p;
      SWIG_ConvertPtr(argv[2], (void **)&p, SWIGTYPE_p_FXVec3f, 1);
      arg4 = new FXVec3f(*p);
    }
  }
  (arg1)->setAxes((FXVec3f const &)*arg2,(FXVec3f const &)*arg3,(FXVec3f const &)*arg4);
  delete arg2;
  delete arg3;
  delete arg4;
  return Qnil;
fail:
  delete arg2;
  delete arg3;
  delete arg4;
  return Qnil;
}
setAxisAngle(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_setAxisAngle(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  FXVec3f *arg2 = 0 ;
  FXfloat arg3 = (FXfloat) 0.0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  
  if ((argc < 1) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","setAxisAngle", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  {
    if (TYPE(argv[0]) == T_ARRAY) {
      arg2 = new FXVec3f(NUM2DBL(rb_ary_entry(argv[0], 0)), NUM2DBL(rb_ary_entry(argv[0], 1)), NUM2DBL(rb_ary_entry(argv[0], 2)));
    } else {
      FXVec3f *p;
      SWIG_ConvertPtr(argv[0], (void **)&p, SWIGTYPE_p_FXVec3f, 1);
      arg2 = new FXVec3f(*p);
    }
  }
  if (argc > 1) {
    ecode3 = SWIG_AsVal_float(argv[1], &val3);
    if (!SWIG_IsOK(ecode3)) {
      SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","setAxisAngle", 3, argv[1] ));
    } 
    arg3 = static_cast< FXfloat >(val3);
  }
  (arg1)->setAxisAngle((FXVec3f const &)*arg2,arg3);
  delete arg2;
  return Qnil;
fail:
  delete arg2;
  return Qnil;
}
setRollPitchYaw(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_setRollPitchYaw(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  FXfloat arg2 ;
  FXfloat arg3 ;
  FXfloat arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf *","setRollPitchYaw", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXfloat","setRollPitchYaw", 2, argv[0] ));
  } 
  arg2 = static_cast< FXfloat >(val2);
  ecode3 = SWIG_AsVal_float(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXfloat","setRollPitchYaw", 3, argv[1] ));
  } 
  arg3 = static_cast< FXfloat >(val3);
  ecode4 = SWIG_AsVal_float(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXfloat","setRollPitchYaw", 4, argv[2] ));
  } 
  arg4 = static_cast< FXfloat >(val4);
  (arg1)->setRollPitchYaw(arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}
unitinvert(*args) click to toggle source
SWIGINTERN VALUE
_wrap_FXQuatf_unitinvert(int argc, VALUE *argv, VALUE self) {
  FXQuatf *arg1 = (FXQuatf *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  FXQuatf result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXQuatf, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatf const *","unitinvert", 1, self )); 
  }
  arg1 = reinterpret_cast< FXQuatf * >(argp1);
  result = ((FXQuatf const *)arg1)->unitinvert();
  {
    FXQuatf *resultptr = new FXQuatf(result);
    vresult = FXRbGetRubyObj(resultptr, "FXQuatf *");
  }
  return vresult;
fail:
  return Qnil;
}