Class: LibSL::LLVector3d
Instance Attribute Summary
Attributes inherited from LLVector3
#x, #y, #z
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from LLVector3
#initialize
Class Method Details
.decode(data) ⇒ Object
332
333
334
335
|
# File 'lib/types.rb', line 332
def self.decode(data)
data = data.unpack('E3a*')
return self.new(data[0], data[1], data[2]), data[3]
end
|
Instance Method Details
#encode ⇒ Object
337
338
339
|
# File 'lib/types.rb', line 337
def encode()
[@x, @y, @z].pack('E3')
end
|