W3C home > Mailing lists > Public > public-device-apis-log@w3.org > February 2017

Re: [sensors] Provide the DeviceOrientation sensor

From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 Feb 2017 13:30:25 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-282719954-1488202223-sysbot+gh@w3.org>
Well, with arrays you can use methods of say glMatrix as the arrays 
were created using it.

ie 

mat4.rotateZ(this.finalMatrix, 
sensor.getRotationMatrixAsFloat32Array(), 
window.screen.orientation.angle * degToRad);

-- 
GitHub Notification of comment by kenchris
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/170#issuecomment-282719954 using
 your GitHub account
Received on Monday, 27 February 2017 13:30:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:22 UTC