Class: GPS_PVT::Coordinate::XYZ

Inherits:
((swig_class *) SWIGTYPE_p_System_3DT_double_t->clientdata)->klass
  • Object
show all
Defined in:
ext/gps_pvt/Coordinate/Coordinate_wrap.cxx,
ext/gps_pvt/Coordinate/Coordinate_wrap.cxx

Overview

Proxy of C++ GPS_PVT::Coordinate::XYZ class

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, self) ⇒ Object



3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3183

SWIGINTERN VALUE _wrap_new_XYZ(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_XYZ__SWIG_0(nargs, args, self);
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, SWIG_POINTER_NO_NULL);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_XYZ__SWIG_2(nargs, args, self);
    }
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Vector3T_double_t, SWIG_POINTER_NO_NULL);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_XYZ__SWIG_3(nargs, args, self);
    }
  }
  if (argc == 3) {
    int _v;
    {
      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_XYZ__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "XYZ.new", 
    "    XYZ.new()\n"
    "    XYZ.new(double const &x, double const &y, double const &z)\n"
    "    XYZ.new(System_XYZ< double,WGS84 >::self_t const &xyz)\n"
    "    XYZ.new(Vector3< double > const &vec)\n");
  
  return Qnil;
}

Class Method Details

.a0Object

call-seq:

XYZ_a0 -> double const

Get value of attribute.



3825
3826
3827
3828
3829
3830
3831
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3825

SWIGINTERN VALUE
_wrap_XYZ_a0_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_double(static_cast< double >(System_XYZ< double,WGS84 >::a0));
  return _val;
}

.b0Object

call-seq:

XYZ_b0 -> double const

Get value of attribute.



3852
3853
3854
3855
3856
3857
3858
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3852

SWIGINTERN VALUE
_wrap_XYZ_b0_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_double(static_cast< double >(System_XYZ< double,WGS84 >::b0));
  return _val;
}

.e0Object

call-seq:

XYZ_e0 -> double const

Get value of attribute.



3879
3880
3881
3882
3883
3884
3885
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3879

SWIGINTERN VALUE
_wrap_XYZ_e0_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_double(static_cast< double >(System_XYZ< double,WGS84 >::e0));
  return _val;
}

.f0Object

call-seq:

XYZ_f0 -> double const

Get value of attribute.



3798
3799
3800
3801
3802
3803
3804
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3798

SWIGINTERN VALUE
_wrap_XYZ_f0_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_double(static_cast< double >(System_XYZ< double,WGS84 >::f0));
  return _val;
}

Instance Method Details

#+(*args) ⇒ Object

call-seq:

+(another) -> XYZ

Add operator.



3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3589

SWIGINTERN VALUE
_wrap_XYZ___add__(int argc, VALUE *argv, VALUE self) {
  System_XYZ< double,WGS84 > *arg1 = (System_XYZ< double,WGS84 > *) 0 ;
  System_XYZ< double,WGS84 >::self_t *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  System_XYZ< double,WGS84 >::self_t 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_System_XYZT_double_WGS84_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > const *","operator +", 1, self )); 
  }
  arg1 = reinterpret_cast< System_XYZ< double,WGS84 > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_System_XYZT_double_WGS84_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 >::self_t const &","operator +", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "System_XYZ< double,WGS84 >::self_t const &","operator +", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< System_XYZ< double,WGS84 >::self_t * >(argp2);
  result = ((System_XYZ< double,WGS84 > const *)arg1)->operator +((System_XYZ< double,WGS84 >::self_t const &)*arg2);
  vresult = SWIG_NewPointerObj((new System_XYZ< double,WGS84 >::self_t(static_cast< const System_XYZ< double,WGS84 >::self_t& >(result))), SWIGTYPE_p_System_XYZT_double_WGS84_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#-(*args) ⇒ Object

call-seq:

-(another) -> XYZ

Substraction operator.



3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3632

SWIGINTERN VALUE
_wrap_XYZ___sub__(int argc, VALUE *argv, VALUE self) {
  System_XYZ< double,WGS84 > *arg1 = (System_XYZ< double,WGS84 > *) 0 ;
  System_XYZ< double,WGS84 >::self_t *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  System_XYZ< double,WGS84 >::self_t 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_System_XYZT_double_WGS84_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > const *","operator -", 1, self )); 
  }
  arg1 = reinterpret_cast< System_XYZ< double,WGS84 > * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_System_XYZT_double_WGS84_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 >::self_t const &","operator -", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "System_XYZ< double,WGS84 >::self_t const &","operator -", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< System_XYZ< double,WGS84 >::self_t * >(argp2);
  result = ((System_XYZ< double,WGS84 > const *)arg1)->operator -((System_XYZ< double,WGS84 >::self_t const &)*arg2);
  vresult = SWIG_NewPointerObj((new System_XYZ< double,WGS84 >::self_t(static_cast< const System_XYZ< double,WGS84 >::self_t& >(result))), SWIGTYPE_p_System_XYZT_double_WGS84_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#after(*args) ⇒ Object

call-seq:

after(double const & delay_sec) -> XYZ

An instance method.



3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3930

SWIGINTERN VALUE
_wrap_XYZ_after(int argc, VALUE *argv, VALUE self) {
  System_XYZ< double,WGS84 > *arg1 = (System_XYZ< double,WGS84 > *) 0 ;
  double *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  System_XYZ< double,WGS84 >::self_t 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_System_XYZT_double_WGS84_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > const *","after", 1, self )); 
  }
  arg1 = reinterpret_cast< System_XYZ< double,WGS84 > * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","after", 2, argv[0] ));
  } 
  temp2 = static_cast< double >(val2);
  arg2 = &temp2;
  result = ((System_XYZ< double,WGS84 > const *)arg1)->after((double const &)*arg2);
  vresult = SWIG_NewPointerObj((new System_XYZ< double,WGS84 >::self_t(static_cast< const System_XYZ< double,WGS84 >::self_t& >(result))), SWIGTYPE_p_System_XYZT_double_WGS84_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#distance(*args, self) ⇒ Object

call-seq:

distance -> double
distance(XYZ another) -> double

An instance method.



3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3736

SWIGINTERN VALUE _wrap_XYZ_distance(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 == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_XYZ_distance__SWIG_0(nargs, args, self);
    }
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, SWIG_POINTER_NO_NULL);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_XYZ_distance__SWIG_1(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "XYZ.distance", 
    "    double XYZ.distance()\n"
    "    double XYZ.distance(System_XYZ< double,WGS84 >::self_t const &another)\n");
  
  return Qnil;
}

#llh(*args) ⇒ Object

call-seq:

llh -> LLH

An instance method.



3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3897

SWIGINTERN VALUE
_wrap_XYZ_llh(int argc, VALUE *argv, VALUE self) {
  System_XYZ< double,WGS84 > *arg1 = (System_XYZ< double,WGS84 > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  System_LLH< double,WGS84 > 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_System_XYZT_double_WGS84_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > const *","llh", 1, self )); 
  }
  arg1 = reinterpret_cast< System_XYZ< double,WGS84 > * >(argp1);
  result = ((System_XYZ< double,WGS84 > const *)arg1)->llh();
  vresult = SWIG_NewPointerObj((new System_LLH< double,WGS84 >(static_cast< const System_LLH< double,WGS84 >& >(result))), SWIGTYPE_p_System_LLHT_double_WGS84_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}

#x(*args, self) ⇒ Object

call-seq:

x -> double const &
x -> double

An instance method.



3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3392

SWIGINTERN VALUE _wrap_XYZ_x(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 2) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_XYZ_x__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_XYZ_x__SWIG_0(nargs, args, self);
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "XYZ.x", 
    "    double const XYZ.x()\n"
    "    double & XYZ.x()\n");
  
  return Qnil;
}

#x=(*args) ⇒ Object

call-seq:

x=(double const & v) -> double

An instance method.



3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3973

SWIGINTERN VALUE
_wrap_XYZ_xe___(int argc, VALUE *argv, VALUE self) {
  System_XYZ< double,WGS84 > *arg1 = (System_XYZ< double,WGS84 > *) 0 ;
  double *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  double 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_System_XYZT_double_WGS84_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > *","set_x", 1, self )); 
  }
  arg1 = reinterpret_cast< System_XYZ< double,WGS84 > * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","set_x", 2, argv[0] ));
  } 
  temp2 = static_cast< double >(val2);
  arg2 = &temp2;
  result = (double)System_XYZ_Sl_double_Sc_WGS84_Sg__set_x(arg1,(double const &)*arg2);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#y(*args, self) ⇒ Object

call-seq:

y -> double const &
y -> double

An instance method.



3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3467

SWIGINTERN VALUE _wrap_XYZ_y(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 2) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_XYZ_y__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_XYZ_y__SWIG_0(nargs, args, self);
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "XYZ.y", 
    "    double const XYZ.y()\n"
    "    double & XYZ.y()\n");
  
  return Qnil;
}

#y=(*args) ⇒ Object

call-seq:

y=(double const & v) -> double

An instance method.



4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 4016

SWIGINTERN VALUE
_wrap_XYZ_ye___(int argc, VALUE *argv, VALUE self) {
  System_XYZ< double,WGS84 > *arg1 = (System_XYZ< double,WGS84 > *) 0 ;
  double *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  double 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_System_XYZT_double_WGS84_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > *","set_y", 1, self )); 
  }
  arg1 = reinterpret_cast< System_XYZ< double,WGS84 > * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","set_y", 2, argv[0] ));
  } 
  temp2 = static_cast< double >(val2);
  arg2 = &temp2;
  result = (double)System_XYZ_Sl_double_Sc_WGS84_Sg__set_y(arg1,(double const &)*arg2);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#z(*args, self) ⇒ Object

call-seq:

z -> double const &
z -> double

An instance method.



3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 3542

SWIGINTERN VALUE _wrap_XYZ_z(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 2) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_XYZ_z__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_System_XYZT_double_WGS84_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_XYZ_z__SWIG_0(nargs, args, self);
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "XYZ.z", 
    "    double const XYZ.z()\n"
    "    double & XYZ.z()\n");
  
  return Qnil;
}

#z=(*args) ⇒ Object

call-seq:

z=(double const & v) -> double

An instance method.



4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
# File 'ext/gps_pvt/Coordinate/Coordinate_wrap.cxx', line 4059

SWIGINTERN VALUE
_wrap_XYZ_ze___(int argc, VALUE *argv, VALUE self) {
  System_XYZ< double,WGS84 > *arg1 = (System_XYZ< double,WGS84 > *) 0 ;
  double *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double temp2 ;
  double val2 ;
  int ecode2 = 0 ;
  double 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_System_XYZT_double_WGS84_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "System_XYZ< double,WGS84 > *","set_z", 1, self )); 
  }
  arg1 = reinterpret_cast< System_XYZ< double,WGS84 > * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","set_z", 2, argv[0] ));
  } 
  temp2 = static_cast< double >(val2);
  arg2 = &temp2;
  result = (double)System_XYZ_Sl_double_Sc_WGS84_Sg__set_z(arg1,(double const &)*arg2);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}