/* * call-seq: * Math.atan2(y, x) => float * * Computes the arc tangent given <i>y</i> and <i>x</i>. Returns * -PI..PI. * */ static VALUE math_atan2(obj, y, x) VALUE obj, x, y; { Need_Float2(y, x); return rb_float_new(atan2(RFLOAT(y)->value, RFLOAT(x)->value)); }