From 379366c5daadf8b83130f41e47d094dc3850382e Mon Sep 17 00:00:00 2001 From: zml Date: Sun, 15 Aug 2021 13:38:33 -0700 Subject: [PATCH] Prevent precision loss when converting integer vectors to doubles Fixes #33 --- .../org/spongepowered/math/vector/Vector2{{E}}.java.peb | 2 +- .../org/spongepowered/math/vector/Vector3{{E}}.java.peb | 2 +- .../org/spongepowered/math/vector/Vector4{{E}}.java.peb | 2 +- .../flowpowered/math/test/vector/Vector3{{E}}Test.java.peb | 6 ++++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/template/integer/org/spongepowered/math/vector/Vector2{{E}}.java.peb b/src/main/template/integer/org/spongepowered/math/vector/Vector2{{E}}.java.peb index c6a7ecc..2b3c3ee 100644 --- a/src/main/template/integer/org/spongepowered/math/vector/Vector2{{E}}.java.peb +++ b/src/main/template/integer/org/spongepowered/math/vector/Vector2{{E}}.java.peb @@ -293,7 +293,7 @@ public final class Vector2{{ E }} implements Vector{{ E }}, Comparable