You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when you print a com.jme3.math.Triangle using System.out.println(t), you get an opaque identifier generated by Object.toString(), such as "com.jme3.math.Triangle@5b33a14a".
For debugging, it would be helpful to override toString() so that Triangle.toString() would generate something like
If the override were in "AbstractTriangle.java" then it would benefit other implementations of AbstractTriangle (though I'm currently not aware of any).
Similar enhancements should also be made to other com.jme3.math classes, such as Line, LineSegment, and Rectangle.
The text was updated successfully, but these errors were encountered:
Currently, when you print a
com.jme3.math.Triangle
usingSystem.out.println(t)
, you get an opaque identifier generated byObject.toString()
, such as "com.jme3.math.Triangle@5b33a14a".For debugging, it would be helpful to override
toString()
so thatTriangle.toString()
would generate something likeIf the override were in "AbstractTriangle.java" then it would benefit other implementations of
AbstractTriangle
(though I'm currently not aware of any).Similar enhancements should also be made to other
com.jme3.math
classes, such asLine
,LineSegment
, andRectangle
.The text was updated successfully, but these errors were encountered: