Sha256: 95421ddd5012e44bbf4fc4c50b24d1e0017044a298a321044dd7ca18d52f89c2
Contents?: true
Size: 1.99 KB
Versions: 2
Compression:
Stored size: 1.99 KB
Contents
#ifndef NUMERIX_MATRIX3X2_H #define NUMERIX_MATRIX3X2_H 1 #include "common.h" #include "matrix_base.h" #define MATRIX3X2() \ Matrix3x2 *m; \ Data_Get_Struct(self, Matrix3x2, m) void Init_matrix3x2(VALUE outer); static VALUE rb_matrix3x2_allocate(VALUE klass); VALUE rb_matrix3x2_initialize(int argc, VALUE *argv, VALUE self); // Instance VALUE rb_matrix3x2_identity_p(VALUE self); VALUE rb_matrix3x2_translation(VALUE self); VALUE rb_matrix3x2_translation_set(VALUE self, VALUE value); VALUE rb_matrix3x2_determinant(VALUE self); VALUE rb_matrix3x2_negate(VALUE self); VALUE rb_matrix3x2_add(VALUE self, VALUE other); VALUE rb_matrix3x2_subtract(VALUE self, VALUE other); VALUE rb_matrix3x2_multiply(VALUE self, VALUE other); VALUE rb_matrix3x2_equal(VALUE self, VALUE other); VALUE rb_matrix3x2_row(VALUE self, VALUE row); VALUE rb_matrix3x2_column(VALUE self, VALUE column); VALUE rb_matrix3x2_each_row(VALUE self); VALUE rb_matrix3x2_each_column(VALUE self); VALUE rb_matrix3x2_aref(int argc, VALUE *argv, VALUE self); VALUE rb_matrix3x2_aset(int argc, VALUE *argv, VALUE self); VALUE rb_matrix3x2_invert(VALUE self); VALUE rb_matrix3x2_lerp(VALUE self, VALUE other, VALUE amount); VALUE rb_matrix3x2_lerp_bang(VALUE self, VALUE other, VALUE amount); VALUE rb_matrix3x2_pow(VALUE self, VALUE exponent); VALUE rb_matrix3x2_map(VALUE self); VALUE rb_matrix3x2_map_bang(VALUE self); // Conversion VALUE rb_matrix3x2_to_s(VALUE self); VALUE rb_matrix3x2_to_a(VALUE self); VALUE rb_matrix3x2_to_h(VALUE self); // Class VALUE rb_matrix3x2_identity(VALUE klass); VALUE rb_matrix3x2_create_translation(int argc, VALUE *argv, VALUE klass); VALUE rb_matrix3x2_create_scale(int argc, VALUE *argv, VALUE klass); VALUE rb_matrix3x2_create_skew(int argc, VALUE *argv, VALUE klass); VALUE rb_matrix3x2_create_rotation(int argc, VALUE *argv, VALUE klass); static inline VALUE rb_matrix3x2_lerp_s(VALUE klass, VALUE matrix1, VALUE matrix2, VALUE amount); #endif /* NUMERIX_MATRIX3X2_H */
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
numerix-1.0.1 | ext/numerix/matrix3x2.h |
numerix-1.0.0 | ext/numerix/matrix3x2.h |