Line { @Override public String toString() { return "origin=[" + origin + "], direction=[" + direction + ']'; } Line();  Line(Vec3 origin, Vec3 direction);  Line(Line line); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); Line set(Vec3 origin, Vec3 direction); Line setToSegment(Vec3 pointA, Vec3 pointB); Vec3 pointAt(double distance, Vec3 result); boolean triStripIntersection(float[] points, int stride, short[] elements, int count, Vec3 result); final Vec3 origin; final Vec3 direction; }
@Test public void testToString() throws Exception { Vec3 origin = new Vec3(1, 2, 3); Vec3 direction = new Vec3(4, 5, 6); Line line = new Line(origin, direction); String string = line.toString(); System.out.println(line); assertTrue("origin x", string.contains(Double.toString(line.origin.x))); assertTrue("origin y", string.contains(Double.toString(line.origin.y))); assertTrue("origin z", string.contains(Double.toString(line.origin.z))); assertTrue("direction x", string.contains(Double.toString(line.direction.x))); assertTrue("direction y", string.contains(Double.toString(line.direction.y))); assertTrue("direction z", string.contains(Double.toString(line.direction.z))); }