Compares native vector, matrix and quaternion operations with DirectX reference calculations.
Subsystem: Rendering, shaders, textures and lighting
Fixture/harness: clientmath11tests
Setup: The standalone ClientMath11Tests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/ClientMath11Tests.vcxproj; declared configurations: Debug|Win32, Release|Win32.
ClientMath11Tests.cpp
Source: Tests/ClientMath11Tests.cpp
Exercise
Fixture: Client Math11 tests
Case symbol: Exercise
Source: Tests/ClientMath11Tests.cpp:22
- Test
- Exercise: projection across cockpit and orbital scales; triangle vertices and interior at every scale; singular inverse leaves output untouched.
Source check messages (including original failure wording)
-
normalize
-
cross
-
lerp
-
rotation matrix
-
point transform
-
direction transform
-
inverse
-
determinant
-
quaternion angles
-
quaternion order
-
slerp
-
triangle hit classification
-
triangle U
-
triangle V
-
triangle distance
-
plane equation
-
packed color rounding
-
projection across cockpit and orbital scales
-
FOV projection at every scale
-
arbitrary rotation axis
-
triangle vertices and interior at every scale
-
analytical triangle distance
-
parallel ray misses
-
outside triangle misses
-
triangle behind ray misses
-
zero normalization
-
authored zero-axis hinge
-
singular inverse leaves output untouched
-
authored and wire math sizes