Class: Bayonetta::CLHFile::FVector

Inherits:
LibBin::Structure
  • Object
show all
Defined in:
lib/bayonetta/clh.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_bxm_vector(v) ⇒ Object



15
16
17
18
19
# File 'lib/bayonetta/clh.rb', line 15

def self.from_bxm_vector(v)
  nv = self::new
  nv.from_bxm_vector(v)
  nv
end

Instance Method Details

#from_bxm_vector(v) ⇒ Object



10
11
12
13
# File 'lib/bayonetta/clh.rb', line 10

def from_bxm_vector(v)
  @x, @y, @z = v.split(" ").collect(&:to_f)
  self
end