Game Engine Black Book: Wolfenstein 3D by Fabien Sanglard
Author:Fabien Sanglard [Sanglard, Fabien]
Language: eng
Format: azw3
Published: 2017-10-06T04:00:00+00:00
This part of the code relies heavily on unit circle principles. As we need to know how much to go vertically when advancing on the X axis and how much to go horizontally when advancing on the Y axis, the tan function is especially useful. This is easier to understand with the unit circle drawn (circle radius r is equal to 1).
Figure 4.44: Unit circle.
When advancing 1 on the X axis, the ray moves up tan(θ) on the Y axis. The reciprocal is calculated as follows: move 1 on Y axis, move tan(90 − θ) on X axis. To accelerate cos, sin and tan calculations, the engine uses lookup table. See 4.11.1 "Cos/Sin Table Lookup".
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(26641)
Hello! Python by Anthony Briggs(25542)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(24806)
Kotlin in Action by Dmitry Jemerov(23893)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(23196)
Dependency Injection in .NET by Mark Seemann(22949)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(21675)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(20542)
Grails in Action by Glen Smith Peter Ledbrook(19581)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17056)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(16562)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(14215)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(12383)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11662)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10645)
Hit Refresh by Satya Nadella(9223)
The Kubernetes Operator Framework Book by Michael Dame(8579)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8432)
Robo-Advisor with Python by Aki Ranin(8376)