ObjectiveCで行列演算

最終更新日29 Jun 2015 13:28

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


files

サポートサイト Wikidot.com matrix