class Fox::FXQuatd
Public Class Methods
Source
# File lib/fox16/aliases.rb, line 3314 def FXQuatd.arc(*args) FXQuatd.new.arc!(*args) end
Source
# File lib/fox16/aliases.rb, line 3317 def FXQuatd.lerp(*args) FXQuatd.new.lerp!(*args) end
Source
SWIGINTERN VALUE _wrap_new_FXQuatd(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_FXQuatd__SWIG_0(nargs, args, self);
}
if (argc == 1) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatd, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FXQuatd__SWIG_1(nargs, args, self);
}
}
if (argc == 1) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_double, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FXQuatd__SWIG_3(nargs, args, self);
}
}
if ((argc >= 1) && (argc <= 2)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 1) {
return _wrap_new_FXQuatd__SWIG_4(nargs, args, self);
}
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_FXQuatd__SWIG_4(nargs, args, self);
}
}
}
if (argc == 3) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXVec3d, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_new_FXQuatd__SWIG_6(nargs, args, self);
}
}
}
}
if (argc == 3) {
int _v = 0;
{
int res = SWIG_AsVal_double(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_FXQuatd__SWIG_5(nargs, args, self);
}
}
}
}
if (argc == 4) {
int _v = 0;
{
int res = SWIG_AsVal_double(argv[0], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
{
int res = SWIG_AsVal_double(argv[3], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_FXQuatd__SWIG_2(nargs, args, self);
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "FXQuatd.new",
" FXQuatd.new()\n"
" FXQuatd.new(FXQuatd const &q)\n"
" FXQuatd.new(FXdouble xx, FXdouble yy, FXdouble zz, FXdouble ww)\n"
" FXQuatd.new(FXdouble const v[])\n"
" FXQuatd.new(FXVec3d const &axis, FXdouble phi)\n"
" FXQuatd.new(FXdouble roll, FXdouble pitch, FXdouble yaw)\n"
" FXQuatd.new(FXVec3d const &ex, FXVec3d const &ey, FXVec3d const &ez)\n");
return Qnil;
}
Public Instance Methods
Source
SWIGINTERN VALUE _wrap_FXQuatd___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 = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatd, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXQuatd, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXQuatd___mul____SWIG_0(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXQuatd, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXVec3d, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXQuatd___mul____SWIG_1(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "__mul__",
" FXQuatd __mul__(FXQuatd const &other)\n"
" FXVec3d __mul__(FXVec3d const &vec)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_adjustN___(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXQuatd *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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","adjust", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = (FXQuatd *) &(arg1)->adjust();
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXQuatd, 0 | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_arcN___(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
FXVec3d *arg2 = 0 ;
FXVec3d *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
FXQuatd *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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","arc", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","arc", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","arc", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","arc", 3, argv[1] ));
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","arc", 3, argv[1]));
}
arg3 = reinterpret_cast< FXVec3d * >(argp3);
result = (FXQuatd *) &(arg1)->arc((FXVec3d const &)*arg2,(FXVec3d const &)*arg3);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXQuatd, 0 | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_conj(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXQuatd 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","conj", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = ((FXQuatd const *)arg1)->conj();
vresult = SWIG_NewPointerObj((new FXQuatd(result)), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_exp(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXQuatd 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","exp", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = ((FXQuatd const *)arg1)->exp();
vresult = SWIG_NewPointerObj((new FXQuatd(result)), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_getAxes(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getAxes", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = (VALUE)FXQuatd_getAxes((FXQuatd const *)arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_getAxisAngle(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getAxisAngle", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = (VALUE)FXQuatd_getAxisAngle((FXQuatd const *)arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_getRollPitchYaw(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getRollPitchYaw", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = (VALUE)FXQuatd_getRollPitchYaw((FXQuatd const *)arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_getXAxis(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXVec3d > 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getXAxis", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = ((FXQuatd const *)arg1)->getXAxis();
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_getYAxis(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXVec3d > 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getYAxis", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = ((FXQuatd const *)arg1)->getYAxis();
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_getZAxis(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXVec3d > 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","getZAxis", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = ((FXQuatd const *)arg1)->getZAxis();
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_invert(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXQuatd 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","invert", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = ((FXQuatd const *)arg1)->invert();
vresult = SWIG_NewPointerObj((new FXQuatd(result)), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_lerpN___(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
FXQuatd *arg2 = 0 ;
FXQuatd *arg3 = 0 ;
FXdouble arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
double val4 ;
int ecode4 = 0 ;
FXQuatd *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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","lerp", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXQuatd, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXQuatd const &","lerp", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatd const &","lerp", 2, argv[0]));
}
arg2 = reinterpret_cast< FXQuatd * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXQuatd, 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXQuatd const &","lerp", 3, argv[1] ));
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXQuatd const &","lerp", 3, argv[1]));
}
arg3 = reinterpret_cast< FXQuatd * >(argp3);
ecode4 = SWIG_AsVal_double(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","lerp", 4, argv[2] ));
}
arg4 = static_cast< FXdouble >(val4);
result = (FXQuatd *) &(arg1)->lerp((FXQuatd const &)*arg2,(FXQuatd const &)*arg3,arg4);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXQuatd, 0 | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_log(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXQuatd 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","log", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = ((FXQuatd const *)arg1)->log();
vresult = SWIG_NewPointerObj((new FXQuatd(result)), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_setAxes(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
FXVec3d *arg2 = 0 ;
FXVec3d *arg3 = 0 ;
FXVec3d *arg4 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","setAxes", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","setAxes", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","setAxes", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_FXVec3d, 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXVec3d const &","setAxes", 3, argv[1] ));
}
if (!argp3) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","setAxes", 3, argv[1]));
}
arg3 = reinterpret_cast< FXVec3d * >(argp3);
res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_FXVec3d, 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXVec3d const &","setAxes", 4, argv[2] ));
}
if (!argp4) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","setAxes", 4, argv[2]));
}
arg4 = reinterpret_cast< FXVec3d * >(argp4);
(arg1)->setAxes((FXVec3d const &)*arg2,(FXVec3d const &)*arg3,(FXVec3d const &)*arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_setAxisAngle(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
FXVec3d *arg2 = 0 ;
FXdouble arg3 = (FXdouble) 0.0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
double 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","setAxisAngle", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXVec3d, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXVec3d const &","setAxisAngle", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","setAxisAngle", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
if (argc > 1) {
ecode3 = SWIG_AsVal_double(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","setAxisAngle", 3, argv[1] ));
}
arg3 = static_cast< FXdouble >(val3);
}
(arg1)->setAxisAngle((FXVec3d const &)*arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_setRollPitchYaw(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
FXdouble arg2 ;
FXdouble arg3 ;
FXdouble arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
double val3 ;
int ecode3 = 0 ;
double 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd *","setRollPitchYaw", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","setRollPitchYaw", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
ecode3 = SWIG_AsVal_double(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","setRollPitchYaw", 3, argv[1] ));
}
arg3 = static_cast< FXdouble >(val3);
ecode4 = SWIG_AsVal_double(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "FXdouble","setRollPitchYaw", 4, argv[2] ));
}
arg4 = static_cast< FXdouble >(val4);
(arg1)->setRollPitchYaw(arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXQuatd_unitinvert(int argc, VALUE *argv, VALUE self) {
FXQuatd *arg1 = (FXQuatd *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXQuatd 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_FXQuatd, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXQuatd const *","unitinvert", 1, self ));
}
arg1 = reinterpret_cast< FXQuatd * >(argp1);
result = ((FXQuatd const *)arg1)->unitinvert();
vresult = SWIG_NewPointerObj((new FXQuatd(result)), SWIGTYPE_p_FXQuatd, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}