A Geometry Test with an Asymmetric Shape

Tests for transformations should include an asymmetric fixture so mirrored, rotated, or transposed results differ visibly.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace an L shape
  2. Check a numerical coordinate

Trace an L shape

Three points on one axis and two on a perpendicular axis with unequal arm lengths make rotation and reflection easy to identify. Use distinct corner values. See checking image transforms.

Check a numerical coordinate

Compare at least one expected transformed point as well as the appearance. Tests with distinguishable outcomes guide the selection.[1]

References

  1. Matt Pharr, Wenzel Jakob and Greg Humphreys, Physically Based Rendering ↩