1 Introduction

This document describes the euclid module, which provides vector, matrix and quaternion classes for 2D and 3D graphics applications. Everything is provided in the euclid namespace:

>>> from euclid import *
>>>

Type checking of arguments is done with assertions. The advantage of this is that in a usual Python session an exception will be raised earlier rather than later, with a message indicating the expected type. When Python is run with the -O or -OO flags, assertions are removed and the code executes faster.