Source Code
Geometric Algebra for Computer Science contains many sections and chapters on programming with GA. You may download the accompanying source code from these pages.
- GA Sandbox: At the end of each of the `theory' chapters (1 through 16), there are programming examples and exercises that show you how to apply the topic of each chapter using C++. To download or view this source code, go to the GA Sandbox page. In addition to examples and exercises, the GA Sandbox is also an environment that you may use to implement your first C++ GA applications.
- Reference implementation: Chapters 18 through 21 describe how to actually implement geometric algebra yourself. These chapters are accompanied by what we have called the reference implementation. This is a simple, inefficient geometric algebra implementation written in Java for the purpose of illustrating how to implement the algorithms from the implementation chapters. An efficient implementation is discussed in Chapter 22.
- Ray tracer: Chapter 23 describes in detail how to use geometric algebra to implement a ray tracer in C++.
- GAViewer: Throughout the book, there are many figures that were generated using our interactive GA program GAViewer. You may download the scripts (.g files) that were used to generate these figures, allowing you to view them interactively. You may also download the source of GAViewer itself here.