Wrong optimizations for 64 bit CPUs
Closed this issue · 9 comments
On 64 bit CPUs, some functions return invalid values due to the optimization that seems to be specifically made for 32 bit. CGVectorMultiplyByScalar
for example.
Can you elaborate on this for me? Would love to fix it, also I will happily accept a pull request.
@angelog Found the problem. It's due to CGFloat changing types of 64bit architecture. Resolving the issue now, will release ASAP.
Fixed!
Awesome! 👍
Doh! Thanks noticing. Will repush in an hour or so.
@angelog Thanks for your patience on this. The header file and Readme are now updated.
I would love any additional feedback you have on this library, it's worked well for me in a few games, but I'm always looking to improve it.
Awesome, thanks! We're using it for a game we'll be releasing on the app store soonish.
Personally I've added a function CGVectorFromPoint (which converts a CGPoint to a CGVector), but perhaps this is already implemented by Apple somewhere that I've missed.
It's been very helpful so far!