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.
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
.