Bug of SCNMatrix4Translate & SCNMatrix4Rotate

Originator:an00na
Number:rdar://33931715 Date Originated:August 16 2017, 8:16 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11 beta 6
Classification:Serious Bug Reproducible:Always
 
Area:
SceneKit

Summary:
According to doc and header files:
* SCNMatrix4Translate(m, t) should be equal to SCNMatrix4Mult(t, m),
* SCNMatrix4Rotate(m, r) should be equal to SCNMatrix4Mult(r, m). 

However, the reality is:
* SCNMatrix4Translate(m, t) ==  SCNMatrix4Mult(m, t)
* SCNMatrix4Rotate(m, r) == SCNMatrix4Mult(m, r)

Only SCNMatrix4Scale(m, s) is correctly equal to SCNMatrix4Mult(s, m).

Steps to Reproduce:
Run the sample playground and read console logs.

Code: https://mega.nz/#!0DBzSJTT!DLDDwsURb9-lszL3eCM_IGHN91tRO9s-_rihYmbwzso

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!