Class: CP::Shape::SegmentQueryInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SegmentQueryInfo.



59
60
61
62
63
64
65
# File 'lib/chipmunk-ffi/shape.rb', line 59

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

Instance Attribute Details

#hitObject (readonly)

Returns the value of attribute hit.



58
59
60
# File 'lib/chipmunk-ffi/shape.rb', line 58

def hit
  @hit
end

#nObject (readonly)

Returns the value of attribute n.



58
59
60
# File 'lib/chipmunk-ffi/shape.rb', line 58

def n
  @n
end

#tObject (readonly)

Returns the value of attribute t.



58
59
60
# File 'lib/chipmunk-ffi/shape.rb', line 58

def t
  @t
end