1
0
mirror of https://github.com/slendidev/smath.git synced 2026-03-16 18:16:50 +02:00

Fix some unused variable warnings

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2026-03-12 03:09:02 +02:00
parent 79dc2d43e6
commit 6471d48d35
2 changed files with 1 additions and 1 deletions

View File

@@ -185,7 +185,6 @@ int main()
Mapper mp(W, H, scale);
int pr_axes = 1;
auto [cx, cy] = mp.map({ 0, 0 });
cvs.hline(H / 2, '-', pr_axes, CLR_AXES);
cvs.vline(W / 2, '|', pr_axes, CLR_AXES);
cvs.put(W / 2, H / 2, 'O', pr_axes + 1, CLR_AXES);

View File

@@ -116,6 +116,7 @@ TEST(Vec, NormalizeAndSafeNormalize)
auto n = v.normalized();
auto ns = v.normalized_safe();
ExpectVecNear(n, Vec3 { 1.0f, 0.0f, 0.0f });
ExpectVecNear(ns, Vec3 { 1.0f, 0.0f, 0.0f });
Vec3 zero {};
auto zs = zero.normalized_safe();