© Rakesh Baruah 2021
R. BaruahAR and VR Using the WebXR APIhttps://doi.org/10.1007/978-1-4842-6318-1_4

4. Matrices, Transformations, and Perspective in WebGL

Rakesh Baruah1  
(1)
Brookfield, WI, USA
 

Until now in our journey along the WebGL pipeline, we have conveniently avoided any talk of linear algebra. While the subject used to give my heart palpitations too, I’ve learned over time that programming 3D graphics provides a helpful, visual tool for the understanding of what linear algebra is. In short, linear algebra is the manipulation of coordinate space in ways that: 1) keep the xyz origin at (0, 0, 0); and 2) keep parallel lines parallel.1 Of course there are many more complicated applications of linear algebra such as in neural networks and quantum ...

Get AR and VR Using the WebXR API: Learn to Create Immersive Content with WebGL, Three.js, and A-Frame now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.