lib/mittsu/math/quaternion.rb in mittsu-0.3.1 vs lib/mittsu/math/quaternion.rb in mittsu-0.3.2

- old
+ new

@@ -1,15 +1,14 @@ -require 'mittsu/math' - module Mittsu class Quaternion EPS = 0.000001 attr_reader :x, :y, :z, :w def initialize(x = 0.0, y = 0.0, z = 0.0, w = 1.0) @x, @y, @z, @w = x, y, z, w + @on_change_callback = nil end def set(x, y, z, w) @x = x.to_f @y = y.to_f @@ -302,8 +301,7 @@ end def self.slerp(qa, qb, qm, t) qm.copy(qa).slerp(qb, t) end - end end