Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 460754 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.gef4.geometry/src/org/eclipse/gef4/geometry/planar/Line.java (+11 lines)
Lines 295-296 Link Here
295
295
296
	/**
297
	 * Calculates the distance between the two {@link Point}s representing the
298
	 * start and end points of this {@link Line}
299
	 * 
300
	 * @see Point#getDistance(Point)
301
	 * @return the distance from P1 to P2
302
	 */
303
	public double getLength() {
304
		return getP1().getDistance(getP2());
305
	}
306
296
	// TODO: add specialized getOverlap()
307
	// TODO: add specialized getOverlap()

Return to bug 460754