Class: Box2D::Rot

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(_c_, _s_) ⇒ Object



65
66
67
68
69
70
# File 'lib/box2d_math_functions.rb', line 65

def self.create_as(_c_, _s_)
  instance = Rot.new
  instance[:c] = _c_
  instance[:s] = _s_
  instance
end

Instance Method Details

#cObject



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

def c = self[:c]

#c=(v) ⇒ Object



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

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

#sObject



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

def s = self[:s]

#s=(v) ⇒ Object



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

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