Class: Box2D::CosSin
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::CosSin
- Defined in:
- lib/box2d_math_functions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create_as(_cosine_, _sine_) ⇒ Object
48 49 50 51 52 53 |
# File 'lib/box2d_math_functions.rb', line 48 def self.create_as(_cosine_, _sine_) instance = CosSin.new instance[:cosine] = _cosine_ instance[:sine] = _sine_ instance end |
Instance Method Details
#cosine ⇒ Object
44 |
# File 'lib/box2d_math_functions.rb', line 44 def cosine = self[:cosine] |
#cosine=(v) ⇒ Object
45 |
# File 'lib/box2d_math_functions.rb', line 45 def cosine=(v) self[:cosine] = v end |
#sine ⇒ Object
46 |
# File 'lib/box2d_math_functions.rb', line 46 def sine = self[:sine] |
#sine=(v) ⇒ Object
47 |
# File 'lib/box2d_math_functions.rb', line 47 def sine=(v) self[:sine] = v end |