Class: Box2D::Plane
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::Plane
- Defined in:
- lib/box2d_math_functions.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create_as(_normal_, _offset_) ⇒ Object
133 134 135 136 137 138 |
# File 'lib/box2d_math_functions.rb', line 133 def self.create_as(_normal_, _offset_) instance = Plane.new instance[:normal] = _normal_ instance[:offset] = _offset_ instance end |
Instance Method Details
#normal ⇒ Object
129 |
# File 'lib/box2d_math_functions.rb', line 129 def normal = self[:normal] |
#normal=(v) ⇒ Object
130 |
# File 'lib/box2d_math_functions.rb', line 130 def normal=(v) self[:normal] = v end |
#offset ⇒ Object
131 |
# File 'lib/box2d_math_functions.rb', line 131 def offset = self[:offset] |
#offset=(v) ⇒ Object
132 |
# File 'lib/box2d_math_functions.rb', line 132 def offset=(v) self[:offset] = v end |