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 491403 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.gef4.geometry/src/org/eclipse/gef4/geometry/planar/Point.java (+13 lines)
Lines 483-488 Link Here
483
	}
483
	}
484
484
485
	/**
485
	/**
486
	 * Returns the translation required to move this {@link Point} to the other
487
	 * {@link Point}
488
	 *
489
	 * @param other
490
	 *            the {@link Point} to get the difference from
491
	 * @return the translation required to move this {@link Point} to the other
492
	 *         {@link Point}
493
	 */
494
	public Point getDifference(Point other) {
495
		return new Point(other.x - x, other.y - y);
496
	}
497
498
	/**
486
	 * Calculates the distance from this Point to the one specified.
499
	 * Calculates the distance from this Point to the one specified.
487
	 *
500
	 *
488
	 * @param p
501
	 * @param p

Return to bug 491403