Class: LibSL::LLVector3d

Inherits:
LLVector3 show all
Defined in:
lib/types.rb

Instance Attribute Summary

Attributes inherited from LLVector3

#x, #y, #z

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from LLVector3

#initialize

Constructor Details

This class inherits a constructor from LibSL::LLVector3

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

#encodeObject



337
338
339
# File 'lib/types.rb', line 337

def encode()
	[@x, @y, @z].pack('E3')
end