@Test public void testSet() { segment1 = new LineSegment(0, 0, 10, 10); segment1.set(15, 17, 25, 27); Assert.assertEquals(15f, segment1.getPointA().x, 0f); Assert.assertEquals(17f, segment1.getPointA().y, 0f); Assert.assertEquals(25f, segment1.getPointB().x, 0f); Assert.assertEquals(27f, segment1.getPointB().y, 0f); }
public void set(float x1, float y1, float x2, float y2) { pointA.set(x1, y1); pointB.set(x2, y2); }
LineSegment implements Disposable { public void set(float x1, float y1, float x2, float y2) { pointA.set(x1, y1); pointB.set(x2, y2); } }
LineSegment implements Disposable { public void set(float x1, float y1, float x2, float y2) { pointA.set(x1, y1); pointB.set(x2, y2); } LineSegment(Geometry geometry);  LineSegment(float x1, float y1, float x2, float y2);  LineSegment(Point pA, Point pB); }
LineSegment implements Disposable { public void set(float x1, float y1, float x2, float y2) { pointA.set(x1, y1); pointB.set(x2, y2); } LineSegment(Geometry geometry);  LineSegment(float x1, float y1, float x2, float y2);  LineSegment(Point pA, Point pB); void dispose(); void setDisposed(boolean disposed); void set(float x1, float y1, float x2, float y2); boolean contains(float x, float y); boolean intersectsLineSegment(float segmentX1, float segmentY1, float segmentX2, float segmentY2); boolean intersects(LineSegment lineSegment); @Deprecated Point getIntersection(LineSegment lineSegment); boolean getIntersection(LineSegment lineSegment, Point result); boolean intersects(Rectangle rectangle); Point getPointA(); void setPointA(Point pointA); Point getPointB(); void setPointB(Point pointB); float getMinX(); float getMinY(); float getMaxX(); float getMaxY(); float getLength(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
LineSegment implements Disposable { public void set(float x1, float y1, float x2, float y2) { pointA.set(x1, y1); pointB.set(x2, y2); } LineSegment(Geometry geometry);  LineSegment(float x1, float y1, float x2, float y2);  LineSegment(Point pA, Point pB); void dispose(); void setDisposed(boolean disposed); void set(float x1, float y1, float x2, float y2); boolean contains(float x, float y); boolean intersectsLineSegment(float segmentX1, float segmentY1, float segmentX2, float segmentY2); boolean intersects(LineSegment lineSegment); @Deprecated Point getIntersection(LineSegment lineSegment); boolean getIntersection(LineSegment lineSegment, Point result); boolean intersects(Rectangle rectangle); Point getPointA(); void setPointA(Point pointA); Point getPointB(); void setPointB(Point pointB); float getMinX(); float getMinY(); float getMaxX(); float getMaxY(); float getLength(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }