Skip to content

Instantly share code, notes, and snippets.

@FlexMonkey
Created January 20, 2016 12:03
Show Gist options
  • Save FlexMonkey/c73083f6cb3abe27a616 to your computer and use it in GitHub Desktop.
Save FlexMonkey/c73083f6cb3abe27a616 to your computer and use it in GitHub Desktop.
CIVector extension to convert to array of CGFloat
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