This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
private extension CGPoint { | |
/// Multiplies point by given value | |
/// - parameter value: The x and y coordinates are multipled by this value. | |
/// - returns: A new CGPoint whose coordinate components have been multiplied by `value` | |
func multipliedBy(value: CGFloat) -> CGPoint { | |
return CGPoint(x: self.x * value, y: self.y * value) | |
} | |
} |