Method: Ray::Vector2#y=

Defined in:
ext/vector.c

#y=(y) ⇒ void Also known as: h=, height=

This method returns an undefined value.

Sets the y position of the vector

Parameters:

  • y (Float)

    New y position



124
125
126
127
128
129
# File 'ext/vector.c', line 124

static
VALUE ray_vector2_set_y(VALUE self, VALUE y) {
  rb_check_frozen(self);
  ray_rb2vector2_ptr(self)->y = NUM2DBL(y);
  return y;
}