Simulator/src/model/map/shapes/PathShape.java
/**
	 * Determines if a line intersects with the shape.
	 * 
	 * @param start
	 *            The start position of the line.
	 * @param end
	 *            The end position of the line.
	 * 
	 * @return True if they do, false otherwise.
	 */
Determines if a line intersects with the shape.

@param start
The start position of the line.
@param end
The end position of the line.

@return True if they do, false otherwise.
Determines if a line intersects with the shape . @param start The start position of the line . @param end The end position of the line . @return True if they do false otherwise .
public boolean isLineCollision(Position start, Position end) {
		for (int i = 0; i < corners.size(); i++) {
			if (Utilities.isLineCollision(start, end, corners.get(i), corners.get((i + 1) % corners.size())))
				return true;
		}
		return false;
	}
public boolean isLineCollision ( Position start , Position end ) { for ( int i = 0 ; i < corners . size ( ) ; i ++ ) { if ( Utilities . isLineCollision ( start , end , corners . get ( i ) , corners . get ( ( i + 1 ) % corners . size ( ) ) ) ) return true ; } return false ; }
Determines if a line intersects with the shape.
Determines if a line intersects with the shape .