Are you still using SketchUp 6 Pro ? There was a bug in the Geom::Vector3d#angle_between() method that was fixed sometime in the 7.x branch.