Class: Box2D::Transform

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/box2d_math_functions.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create_as(_p_, _q_) ⇒ Object



82
83
84
85
86
87
# File 'lib/box2d_math_functions.rb', line 82

def self.create_as(_p_, _q_)
  instance = Transform.new
  instance[:p] = _p_
  instance[:q] = _q_
  instance
end

Instance Method Details

#pObject



78
# File 'lib/box2d_math_functions.rb', line 78

def p = self[:p]

#p=(v) ⇒ Object



79
# File 'lib/box2d_math_functions.rb', line 79

def p=(v) self[:p] = v end

#qObject



80
# File 'lib/box2d_math_functions.rb', line 80

def q = self[:q]

#q=(v) ⇒ Object



81
# File 'lib/box2d_math_functions.rb', line 81

def q=(v) self[:q] = v end