Class: Box2D::Mat22
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::Mat22
- Defined in:
- lib/box2d_math_functions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create_as(_cx_, _cy_) ⇒ Object
99 100 101 102 103 104 |
# File 'lib/box2d_math_functions.rb', line 99 def self.create_as(_cx_, _cy_) instance = Mat22.new instance[:cx] = _cx_ instance[:cy] = _cy_ instance end |
Instance Method Details
#cx ⇒ Object
95 |
# File 'lib/box2d_math_functions.rb', line 95 def cx = self[:cx] |
#cx=(v) ⇒ Object
96 |
# File 'lib/box2d_math_functions.rb', line 96 def cx=(v) self[:cx] = v end |
#cy ⇒ Object
97 |
# File 'lib/box2d_math_functions.rb', line 97 def cy = self[:cy] |
#cy=(v) ⇒ Object
98 |
# File 'lib/box2d_math_functions.rb', line 98 def cy=(v) self[:cy] = v end |