lib/processing/vector.rb in processing-0.5.30 vs lib/processing/vector.rb in processing-0.5.31

- old
+ new

@@ -461,12 +461,12 @@ # @param angle [Numeric] the angle of rotation # # @return [Vector] rotated this object # def rotate(angle) - angle = @context ? - @context.toAngle__(angle) : angle * GraphicsContext::RAD2DEG__ - @point.rotate! angle + deg = @context ? + @context.toDegrees__(angle) : angle * GraphicsContext::RAD2DEG__ + @point.rotate! deg self end # Returns the angle of rotation for this vector. #