class Fox::FXVec3d
Public Class Methods
Source
SWIGINTERN VALUE _wrap_new_FXVec3d(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[3];
int ii;
argc = nargs;
if (argc > 3) SWIG_fail;
for (ii = 0; (ii < argc); ++ii) {
argv[ii] = args[ii];
}
if (argc == 0) {
return _wrap_new_FXVec3d__SWIG_0(nargs, args, self);
}
if (argc == 1) {
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) {
return _wrap_new_FXVec3d__SWIG_1(nargs, args, self);
}
}
if (argc == 1) {
int _v = 0;
{
_v = (TYPE(argv[0]) == T_FIXNUM || TYPE(argv[0]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_new_FXVec3d__SWIG_3(nargs, args, self);
}
}
if ((argc >= 2) && (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) {
if (argc <= 2) {
return _wrap_new_FXVec3d__SWIG_2(nargs, args, self);
}
{
int res = SWIG_AsVal_double(argv[2], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_new_FXVec3d__SWIG_2(nargs, args, self);
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "FXVec3d.new",
" FXVec3d.new()\n"
" FXVec3d.new(FXVec3d const &v)\n"
" FXVec3d.new(FXdouble xx, FXdouble yy, FXdouble zz)\n"
" FXVec3d.new(FXColor color)\n");
return Qnil;
}
Source
# File rdoc-sources/FXVec3d.rb, line 11 def initialize; end
Return an FXVec3d instance with x, y and z initialized to zeroes.
Source
SWIGINTERN VALUE _wrap_FXVec3d_normal(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 == 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_FXVec3d_normal__SWIG_0(nargs, args, self);
}
}
}
}
if (argc == 4) {
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) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXVec3d, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXVec3d_normal__SWIG_1(nargs, args, self);
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 4, "normal",
" FXVec3d normal(FXVec3d const &a, FXVec3d const &b, FXVec3d const &c)\n"
" FXVec3d normal(FXVec3d const &a, FXVec3d const &b, FXVec3d const &c, FXVec3d const &d)\n");
return Qnil;
}
Public Instance Methods
Source
SWIGINTERN VALUE _wrap_FXVec3d___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_FXVec3d, 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_FXVec3d___mul____SWIG_1(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXVec3d, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
int res = SWIG_AsVal_double(argv[1], NULL);
_v = SWIG_CheckState(res);
}
if (_v) {
return _wrap_FXVec3d___mul____SWIG_0(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "__mul__",
" FXVec3d __mul__(FXdouble n)\n"
" FXdouble __mul__(FXVec3d const &other)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d___add__(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXVec3d *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
SwigValueWrapper< FXVec3d > result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator +", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(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 &","operator +", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator +", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
result = FXVec3d_operator_Sa_((FXVec3d const *)arg1,(FXVec3d const &)*arg2);
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Add operator.
Source
SWIGINTERN VALUE
_wrap_FXVec3d___sub__(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXVec3d *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
SwigValueWrapper< FXVec3d > result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator -", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(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 &","operator -", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator -", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
result = FXVec3d_operator_Ss_((FXVec3d const *)arg1,(FXVec3d const &)*arg2);
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Subtraction operator.
Source
SWIGINTERN VALUE
_wrap_FXVec3d___neg__(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 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_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator -", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
result = FXVec3d_operator_Ss_((FXVec3d const *)arg1);
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Subtraction operator.
Source
SWIGINTERN VALUE
_wrap_FXVec3d___div__(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
SwigValueWrapper< FXVec3d > result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator /", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","operator /", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
result = FXVec3d_operator_Sd_((FXVec3d const *)arg1,arg2);
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d___eq__(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXVec3d *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator ==", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(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 &","operator ==", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator ==", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
result = (bool)FXVec3d_operator_Se__Se_((FXVec3d const *)arg1,(FXVec3d const &)*arg2);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Equality comparison operator.
Source
SWIGINTERN VALUE
_wrap_FXVec3d___getitem__(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","__getitem__", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
arg2 = NUM2INT(argv[0]);
result = (FXdouble)FXVec3d___getitem__((FXVec3d const *)arg1,arg2);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Element accessor/slicing.
Source
SWIGINTERN VALUE
_wrap_FXVec3d___setitem__(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXint arg2 ;
FXdouble arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val3 ;
int ecode3 = 0 ;
FXdouble result;
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_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","__setitem__", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
arg2 = NUM2INT(argv[0]);
ecode3 = SWIG_AsVal_double(argv[1], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "FXdouble","__setitem__", 3, argv[1] ));
}
arg3 = static_cast< FXdouble >(val3);
result = (FXdouble)FXVec3d___setitem__(arg1,arg2,arg3);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Element setter/slicing.
Source
SWIGINTERN VALUE
_wrap_FXVec3d___xor__(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXVec3d *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
SwigValueWrapper< FXVec3d > result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","operator ^", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(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 &","operator ^", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","operator ^", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
result = FXVec3d_operator_Sx_((FXVec3d const *)arg1,(FXVec3d const &)*arg2);
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
XOR operator.
Source
SWIGINTERN VALUE
_wrap_FXVec3d_clamp(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXdouble arg2 ;
FXdouble arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
double val3 ;
int ecode3 = 0 ;
FXVec3d *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_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","clamp", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","clamp", 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","clamp", 3, argv[1] ));
}
arg3 = static_cast< FXdouble >(val3);
result = (FXVec3d *) &(arg1)->clamp(arg2,arg3);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_FXVec3d, 0 | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_cross(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXVec3d *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
SwigValueWrapper< FXVec3d > result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","cross", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(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 &","cross", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","cross", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
result = FXVec3d_cross((FXVec3d const *)arg1,(FXVec3d const &)*arg2);
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_dot(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXVec3d *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
FXdouble result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","dot", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(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 &","dot", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","dot", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
result = (FXdouble)FXVec3d_dot((FXVec3d const *)arg1,(FXVec3d const &)*arg2);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_hi(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXVec3d *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
SwigValueWrapper< FXVec3d > result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","hi", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(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 &","hi", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","hi", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
result = FXVec3d_hi((FXVec3d const *)arg1,(FXVec3d const &)*arg2);
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_length(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","length", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
result = (FXdouble)((FXVec3d const *)arg1)->length();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Also aliased as: len
Source
SWIGINTERN VALUE
_wrap_FXVec3d_length2(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","length2", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
result = (FXdouble)((FXVec3d const *)arg1)->length2();
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Also aliased as: len2
Source
SWIGINTERN VALUE
_wrap_FXVec3d_lo(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXVec3d *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
SwigValueWrapper< FXVec3d > result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","lo", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(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 &","lo", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXVec3d const &","lo", 2, argv[0]));
}
arg2 = reinterpret_cast< FXVec3d * >(argp2);
result = FXVec3d_lo((FXVec3d const *)arg1,(FXVec3d const &)*arg2);
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_normalize(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 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_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d const *","normalize", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
result = FXVec3d_normalize((FXVec3d const *)arg1);
vresult = SWIG_NewPointerObj((new FXVec3d(result)), SWIGTYPE_p_FXVec3d, SWIG_POINTER_OWN | 0 );
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_x_get(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","x", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
result = (FXdouble) ((arg1)->x);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_x_set(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","x", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","x", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
if (arg1) (arg1)->x = arg2;
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_y_get(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","y", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
result = (FXdouble) ((arg1)->y);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_y_set(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","y", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","y", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
if (arg1) (arg1)->y = arg2;
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_z_get(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXdouble 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_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","z", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
result = (FXdouble) ((arg1)->z);
vresult = SWIG_From_double(static_cast< double >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXVec3d_z_set(int argc, VALUE *argv, VALUE self) {
FXVec3d *arg1 = (FXVec3d *) 0 ;
FXdouble arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXVec3d, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXVec3d *","z", 1, self ));
}
arg1 = reinterpret_cast< FXVec3d * >(argp1);
ecode2 = SWIG_AsVal_double(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "FXdouble","z", 2, argv[0] ));
}
arg2 = static_cast< FXdouble >(val2);
if (arg1) (arg1)->z = arg2;
return Qnil;
fail:
return Qnil;
}