Class: CP::Space::SegmentQueryInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/chipmunk-ffi/space.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hit, shape, t = nil, n = nil, info = nil) ⇒ SegmentQueryInfo

Returns a new instance of SegmentQueryInfo.



347
348
349
350
351
352
353
# File 'lib/chipmunk-ffi/space.rb', line 347

def initialize(hit,shape,t=nil,n=nil,info=nil)
  @hit = hit
  @shape = shape
  @t = t
  @n = n
  @info = info
end

Instance Attribute Details

#hitObject (readonly)

Returns the value of attribute hit.



346
347
348
# File 'lib/chipmunk-ffi/space.rb', line 346

def hit
  @hit
end

#nObject (readonly)

Returns the value of attribute n.



346
347
348
# File 'lib/chipmunk-ffi/space.rb', line 346

def n
  @n
end

#shapeObject (readonly)

Returns the value of attribute shape.



346
347
348
# File 'lib/chipmunk-ffi/space.rb', line 346

def shape
  @shape
end

#tObject (readonly)

Returns the value of attribute t.



346
347
348
# File 'lib/chipmunk-ffi/space.rb', line 346

def t
  @t
end