# File lib/eymiha/math3/quaternion.rb, line 81 def Quaternion.from_axis_angle(axis,angle) half_angle = angle/2.0 Quaternion.new Point3.new(axis).scale(Math.sin(half_angle)), Math.cos(half_angle) end