Simulator/src/simulation/simulation/util/Utilities.java
/**
	 * Determines if a line intersects with a set of components.
	 * 
	 * @param start
	 *            The start position of the line.
	 * @param end
	 *            The end position of the line.
	 * @param components
	 *            The components.
	 * @param <T>
	 *            The specified subclass of {@link MapComponent}.
	 * 
	 * @return True if they do, false otherwise.
	 */
Determines if a line intersects with a set of components.

@param start
The start position of the line.
@param end
The end position of the line.
@param components
The components.
@param 
The specified subclass of  MapComponent.

@return True if they do, false otherwise.
Determines if a line intersects with a set of components . @param start The start position of the line . @param end The end position of the line . @param components The components . @param The specified subclass of MapComponent . @return True if they do false otherwise .
public static <T extends PhysicalMapComponent> boolean isLineCollision(Position start, Position end,
			Collection<T> components) {
		for (T component : components) {
			if (component.isLineCollision(start, end))
				return true;
		}
		return false;
	}
public static < T extends PhysicalMapComponent > boolean isLineCollision ( Position start , Position end , Collection < T > components ) { for ( T component : components ) { if ( component . isLineCollision ( start , end ) ) return true ; } return false ; }
Determines if a line intersects with a set of components.
Determines if a line intersects with a set of components .