Class: Box2D::RayResult
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Box2D::RayResult
- Defined in:
- lib/box2d_types.rb
Overview
Struct
Class Method Summary collapse
Instance Method Summary collapse
- #fraction ⇒ Object
- #fraction=(v) ⇒ Object
- #hit ⇒ Object
- #hit=(v) ⇒ Object
- #leafVisits ⇒ Object
- #leafVisits=(v) ⇒ Object
- #nodeVisits ⇒ Object
- #nodeVisits=(v) ⇒ Object
- #normal ⇒ Object
- #normal=(v) ⇒ Object
- #point ⇒ Object
- #point=(v) ⇒ Object
- #shapeId ⇒ Object
- #shapeId=(v) ⇒ Object
Class Method Details
.create_as(_shapeId_, _point_, _normal_, _fraction_, _nodeVisits_, _leafVisits_, _hit_) ⇒ Object
223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/box2d_types.rb', line 223 def self.create_as(_shapeId_, _point_, _normal_, _fraction_, _nodeVisits_, _leafVisits_, _hit_) instance = RayResult.new instance[:shapeId] = _shapeId_ instance[:point] = _point_ instance[:normal] = _normal_ instance[:fraction] = _fraction_ instance[:nodeVisits] = _nodeVisits_ instance[:leafVisits] = _leafVisits_ instance[:hit] = _hit_ instance end |
Instance Method Details
#fraction ⇒ Object
215 |
# File 'lib/box2d_types.rb', line 215 def fraction = self[:fraction] |
#fraction=(v) ⇒ Object
216 |
# File 'lib/box2d_types.rb', line 216 def fraction=(v) self[:fraction] = v end |
#hit ⇒ Object
221 |
# File 'lib/box2d_types.rb', line 221 def hit = self[:hit] |
#hit=(v) ⇒ Object
222 |
# File 'lib/box2d_types.rb', line 222 def hit=(v) self[:hit] = v end |
#leafVisits ⇒ Object
219 |
# File 'lib/box2d_types.rb', line 219 def leafVisits = self[:leafVisits] |
#leafVisits=(v) ⇒ Object
220 |
# File 'lib/box2d_types.rb', line 220 def leafVisits=(v) self[:leafVisits] = v end |
#nodeVisits ⇒ Object
217 |
# File 'lib/box2d_types.rb', line 217 def nodeVisits = self[:nodeVisits] |
#nodeVisits=(v) ⇒ Object
218 |
# File 'lib/box2d_types.rb', line 218 def nodeVisits=(v) self[:nodeVisits] = v end |
#normal ⇒ Object
213 |
# File 'lib/box2d_types.rb', line 213 def normal = self[:normal] |
#normal=(v) ⇒ Object
214 |
# File 'lib/box2d_types.rb', line 214 def normal=(v) self[:normal] = v end |
#point ⇒ Object
211 |
# File 'lib/box2d_types.rb', line 211 def point = self[:point] |
#point=(v) ⇒ Object
212 |
# File 'lib/box2d_types.rb', line 212 def point=(v) self[:point] = v end |
#shapeId ⇒ Object
209 |
# File 'lib/box2d_types.rb', line 209 def shapeId = self[:shapeId] |
#shapeId=(v) ⇒ Object
210 |
# File 'lib/box2d_types.rb', line 210 def shapeId=(v) self[:shapeId] = v end |