lib/cyberarm_engine/lib/vector.rb in cyberarm_engine-0.3.0 vs lib/cyberarm_engine/lib/vector.rb in cyberarm_engine-0.4.0

- old
+ new

@@ -29,10 +29,10 @@ @weight == other.weight end end # Performs math operation, excluding @weight - def operator(function, other) + private def operator(function, other) if other.is_a?(Numeric) Vector.new( @x.send(:"#{function}", other), @y.send(:"#{function}", other), @z.send(:"#{function}", other) \ No newline at end of file