Просмотр исходного кода

Update Camera: revert toString() method

Wyatt Gillette 7 месяцев назад
Родитель
Сommit
c01c8b0de2
1 измененных файлов с 5 добавлено и 9 удалено
  1. 5 9
      jme3-core/src/main/java/com/jme3/renderer/Camera.java

+ 5 - 9
jme3-core/src/main/java/com/jme3/renderer/Camera.java

@@ -1576,7 +1576,7 @@ public class Camera implements Savable, Cloneable {
      * <p>
      * <p>
      * Resulting ray is in world space, starting on the near plane
      * Resulting ray is in world space, starting on the near plane
      * of the camera and going through position's (x,y) pixel coordinates on the screen.
      * of the camera and going through position's (x,y) pixel coordinates on the screen.
-     * 
+     *
      * @param click2d A {@link Vector2f} representing the 2D screen coordinates (in pixels)
      * @param click2d A {@link Vector2f} representing the 2D screen coordinates (in pixels)
      * @return A {@link Ray} object representing the picking ray in world coordinates.
      * @return A {@link Ray} object representing the picking ray in world coordinates.
      *
      *
@@ -1625,14 +1625,10 @@ public class Camera implements Savable, Cloneable {
 
 
     @Override
     @Override
     public String toString() {
     public String toString() {
-        return getClass().getSimpleName()
-                + "[location=" + location
-                + ", direction=" + getDirection()
-                + ", res=" + width + "x" + height
-                + ", parallel=" + parallelProjection
-                + ", near=" + frustumNear
-                + ", far=" + frustumFar
-                + "]";
+        return "Camera[location=" + location + "\n"
+                + "direction=" + getDirection() + "\n"
+                + "res=" + width + "x" + height + ", parallel=" + parallelProjection + "\n"
+                + "near=" + frustumNear + ", far=" + frustumFar + "]";
     }
     }
 
 
     @Override
     @Override