diff options
author | Sven Gothel <[email protected]> | 2023-04-12 19:05:10 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-04-12 19:05:10 +0200 |
commit | 3224346312357430eeb7af3f561e85f9695870b6 (patch) | |
tree | 536a3366b60c41014c0dab3f264d5f4bbe2f238b /src/jogl/classes/com/jogamp/opengl/math/geom | |
parent | 2fbaa25d70854de2857d9fa20ac6a34c294a4222 (diff) |
Graph/Math: Cleanup toString(), spacing and use System.lineSeparator()
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl/math/geom')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java | 4 | ||||
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/math/geom/Frustum.java | 18 |
2 files changed, 9 insertions, 13 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java b/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java index ad521de2a..f76ae8059 100644 --- a/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java +++ b/src/jogl/classes/com/jogamp/opengl/math/geom/AABBox.java @@ -816,7 +816,7 @@ public class AABBox { @Override public final String toString() { - return "[ dim "+getWidth()+" x "+getHeight()+" x "+getDepth()+ - ", box "+low+" .. "+high+", ctr "+center+" ]"; + return "[dim "+getWidth()+" x "+getHeight()+" x "+getDepth()+ + ", box "+low+" .. "+high+", ctr "+center+"]"; } } diff --git a/src/jogl/classes/com/jogamp/opengl/math/geom/Frustum.java b/src/jogl/classes/com/jogamp/opengl/math/geom/Frustum.java index f72154827..73079959b 100644 --- a/src/jogl/classes/com/jogamp/opengl/math/geom/Frustum.java +++ b/src/jogl/classes/com/jogamp/opengl/math/geom/Frustum.java @@ -27,13 +27,9 @@ */ package com.jogamp.opengl.math.geom; -import jogamp.common.os.PlatformPropsImpl; - -import com.jogamp.opengl.math.FloatUtil; import com.jogamp.opengl.math.FovHVHalves; import com.jogamp.opengl.math.Matrix4f; import com.jogamp.opengl.math.Vec3f; -import com.jogamp.opengl.math.geom.Frustum.FovDesc; /** * Providing frustum {@link #getPlanes() planes} derived by different inputs @@ -364,13 +360,13 @@ public class Frustum { if( null == sb ) { sb = new StringBuilder(); } - sb.append("Frustum[ Planes[ ").append(PlatformPropsImpl.NEWLINE) - .append(" L: ").append(planes[0]).append(", ").append(PlatformPropsImpl.NEWLINE) - .append(" R: ").append(planes[1]).append(", ").append(PlatformPropsImpl.NEWLINE) - .append(" B: ").append(planes[2]).append(", ").append(PlatformPropsImpl.NEWLINE) - .append(" T: ").append(planes[3]).append(", ").append(PlatformPropsImpl.NEWLINE) - .append(" N: ").append(planes[4]).append(", ").append(PlatformPropsImpl.NEWLINE) - .append(" F: ").append(planes[5]).append("], ").append(PlatformPropsImpl.NEWLINE) + sb.append("Frustum[Planes[").append(System.lineSeparator()) + .append(" L: ").append(planes[0]).append(", ").append(System.lineSeparator()) + .append(" R: ").append(planes[1]).append(", ").append(System.lineSeparator()) + .append(" B: ").append(planes[2]).append(", ").append(System.lineSeparator()) + .append(" T: ").append(planes[3]).append(", ").append(System.lineSeparator()) + .append(" N: ").append(planes[4]).append(", ").append(System.lineSeparator()) + .append(" F: ").append(planes[5]).append("], ").append(System.lineSeparator()) .append("]"); return sb; } |