Created
January 20, 2016 12:03
-
-
Save FlexMonkey/c73083f6cb3abe27a616 to your computer and use it in GitHub Desktop.
CIVector extension to convert to array of CGFloat
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
extension CIVector | |
{ | |
func toArray() -> [CGFloat] | |
{ | |
var returnArray = [CGFloat]() | |
for i in 0 ..< self.count | |
{ | |
returnArray.append(self.valueAtIndex(i)) | |
} | |
return returnArray | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment