Class: V2D
- Inherits:
-
Object
- Object
- V2D
- Defined in:
- ext/init.c
Class Method Summary collapse
-
.[] ⇒ Object
Return
V2D.new(x, y)
.
Instance Method Summary collapse
-
#* ⇒ Object
Return product with
multiplier
. -
#+ ⇒ Object
Return sum with
other
. -
#- ⇒ Object
Return diff with
other
. -
#/ ⇒ Object
Return quotient with
divisor
. -
#== ⇒ Object
Return whether equals to
other
. -
#abs ⇒ Object
Return absolute value.
-
#initialize ⇒ Object
constructor
Return new with initialized x and y.
-
#x ⇒ Object
Return x.
-
#x= ⇒ Object
Set x.
-
#y ⇒ Object
Return y.
-
#y= ⇒ Object
Set y.
Constructor Details
#initialize ⇒ Object
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);
|
#abs ⇒ Object
Return absolute value
44 |
# File 'ext/init.c', line 44 VALUE rb_abs(VALUE self); |
#x ⇒ Object
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);
|
#y ⇒ Object
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);
|