aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium
diff options
context:
space:
mode:
authorFalsePattern <me@falsepattern.com>2023-12-01 13:02:43 +0100
committermakamys <makamys@outlook.com>2023-12-01 13:13:38 +0100
commit0fa977243a06dfe656f9798110ccaa80bb745dfb (patch)
treea63f9f5fc9cc0688543c6ead73248dc4469938fc /src/main/java/makamys/neodymium
parent1080bc281549b9154114e3f05c60f15b926dc21e (diff)
downloadNeodymium-0fa977243a06dfe656f9798110ccaa80bb745dfb.tar.gz
Neodymium-0fa977243a06dfe656f9798110ccaa80bb745dfb.tar.bz2
Neodymium-0fa977243a06dfe656f9798110ccaa80bb745dfb.zip
readded toString to MeshQuad
Diffstat (limited to 'src/main/java/makamys/neodymium')
-rw-r--r--src/main/java/makamys/neodymium/renderer/MeshQuad.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/MeshQuad.java b/src/main/java/makamys/neodymium/renderer/MeshQuad.java
index 94b981c..9c12472 100644
--- a/src/main/java/makamys/neodymium/renderer/MeshQuad.java
+++ b/src/main/java/makamys/neodymium/renderer/MeshQuad.java
@@ -131,6 +131,11 @@ public class MeshQuad {
+ 4 // C (int)
;
}
+
+ @Override
+ public String toString() {
+ return String.format(Locale.ENGLISH, "%s[(%.1f, %.1f, %.1f), (%.1f, %.1f, %.1f), (%.1f, %.1f, %.1f), (%.1f, %.1f, %.1f)]", deleted ? "XXX " : "", xs[0], ys[0], zs[0], xs[1], ys[1], zs[1], xs[2], ys[2], zs[2], xs[3], ys[3], zs[3]);
+ }
public static boolean isValid(MeshQuad q) {
return q != null && !q.deleted;