Method: PLplot.pldip2dc
- Defined in:
- ext/rbplplot.c
.dldid2dc(dxmin, dymin, dxmax, dymax) ⇒ Array
Converts input values from relative plot coordinates to relative device coordinates.
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 |
# File 'ext/rbplplot.c', line 684 static VALUE rb_plplot_pldip2dc(VALUE mod, VALUE vxmin, VALUE vymin, VALUE vxmax, VALUE vymax) { PLFLT xmin, ymin, xmax, ymax; xmin = NUM2DBL(xmin); ymin = NUM2DBL(ymin); xmax = NUM2DBL(xmax); ymax = NUM2DBL(ymax); pldip2dc(&xmin, &ymin, &xmax, &ymax); return rb_ary_new3(4, rb_float_new(xmin), rb_float_new(ymin), rb_float_new(xmax), rb_float_new(ymax)); } |