Method: PLplot.plcalc_world
- Defined in:
- ext/rbplplot.c
.plcalc_world(rx, ry) ⇒ Array
Calculate world coordinates and corresponding window index from relative device coordinates
2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 |
# File 'ext/rbplplot.c', line 2397
static VALUE
rb_mPLplot_plcalc_world(VALUE obj,VALUE arg0,VALUE arg1)
{
PLFLT ivar0;
PLFLT ivar1;
PLFLT ovar0;
PLFLT ovar1;
PLINT ovar2;
ivar0 = NUM2DBL(arg0);
ivar1 = NUM2DBL(arg1);
plcalc_world(ivar0,ivar1,&ovar0,&ovar1,&ovar2);
return rb_ary_new3(3,
rb_float_new(ovar0),
rb_float_new(ovar1),
LONG2NUM(ovar2)
);
}
|