ObjectiveCで行列演算

objectivec-matrix.png
using namespace AAPL;
using namespace simd;
....
float4x4 _projectionMatrix;
float4x4 _viewMatrix;
float aspect = fabsf(view.bounds.size.width / view.bounds.size.height);
_projectionMatrix = perspective_fov(kFOVY, aspect, 0.1f, 100.0f);
_viewMatrix = lookAt(kEye, kCenter, kUp);

matrix

サポートサイト Wikidot.com matrix