Class: Bayonetta::CLPFile::FVector
- Inherits:
-
LibBin::Structure
- Object
- LibBin::Structure
- Bayonetta::CLPFile::FVector
- Defined in:
- lib/bayonetta/clp.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/clp.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/clp.rb', line 10 def from_bxm_vector(v) @x, @y, @z = v.split(" ").collect(&:to_f) self end |