Class: V2D

Inherits:
Object
  • Object
show all
Defined in:
ext/init.c

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Return new with initialized x and y



14
# File 'ext/init.c', line 14

VALUE rb_initialize_with_x_and_y(VALUE self, VALUE x, VALUE y);

Class Method Details

.[]Object

Return V2D.new(x, y)



17
# File 'ext/init.c', line 17

VALUE rb_square_brackets(VALUE klass, VALUE x, VALUE y);

Instance Method Details

#*Object

Return product with multiplier



38
# File 'ext/init.c', line 38

VALUE rb_mul(VALUE self, VALUE multiplier);

#+Object

Return sum with other



32
# File 'ext/init.c', line 32

VALUE rb_add(VALUE self, VALUE other);

#-Object

Return diff with other



35
# File 'ext/init.c', line 35

VALUE rb_sub(VALUE self, VALUE other);

#/Object

Return quotient with divisor



41
# File 'ext/init.c', line 41

VALUE rb_div(VALUE self, VALUE divisor);

#==Object

Return whether equals to other



47
# File 'ext/init.c', line 47

VALUE rb_equals(VALUE self, VALUE other);

#absObject

Return absolute value



44
# File 'ext/init.c', line 44

VALUE rb_abs(VALUE self);

#xObject

Return x



20
# File 'ext/init.c', line 20

VALUE rb_get_x(VALUE self);

#x=Object

Set x



26
# File 'ext/init.c', line 26

VALUE rb_set_x(VALUE self, VALUE x);

#yObject

Return y



23
# File 'ext/init.c', line 23

VALUE rb_get_y(VALUE self);

#y=Object

Set y



29
# File 'ext/init.c', line 29

VALUE rb_set_y(VALUE self, VALUE y);