Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do matrix and vector math in Objective-C?

I need to do matrix and vector math in Objective-C. Are there tutorials which show how this works? Are there math libraries that come in handy?

like image 476
Proud Member Avatar asked Mar 31 '11 19:03

Proud Member


2 Answers

Since iOS 4.0, the SDK includes Apple's Accelerate framework, which contains a number of C matrix and vector functions that are especially optimized to run on iOS hardware.

The function names and documentation is kind of cryptic, but if performance is particularly important, it might be your best choice.

like image 128
Ole Begemann Avatar answered Oct 07 '22 23:10

Ole Begemann


I did not see it mentioned but GLKit provides vector / matrix functions for math types commonly used in computer graphics.

like image 27
Preston Software Avatar answered Oct 08 '22 01:10

Preston Software