101 102 103
# File 'lib/mageo/vector3d.rb', line 101 def self.midpoint(vec1, vec2) (vec1.to_v3d + vec2.to_v3d)/2.0 end