raysect / source

The main source repository for the Raysect project.
http://www.raysect.org
BSD 3-Clause "New" or "Revised" License
88 stars 23 forks source link

Tests AffineMatrix3D is only rotation and translation. #348

Open CnlPepper opened 4 years ago

CnlPepper commented 4 years ago

At present we don't have any utilities to determine what an AffineMatrix3D describes. It is possible to check of a matrix defines a valid translation and rotation, which is essential if decomposing a matrix.

Shear, scaling, reflections are all forbidden operations in raysect (no enforced for speed, by convention). A test that checks a matrix does not contain these elements would also be useful.