Skip to content

Commit

Permalink
Fix incomplete match warning
Browse files Browse the repository at this point in the history
Also implicit conversion from to polygon has caused the doc generation to break
  • Loading branch information
echeipesh committed Oct 20, 2017
1 parent 8f06e0a commit ef14974
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -375,7 +375,7 @@ object Rasterizer {
}

// Find cell of first intersection with extent and ray
val (initialPoint, finalPoint) = re.extent.intersection(Line((x0, y0), (x1, y1))) match {
val (initialPoint, finalPoint) = re.extent.toPolygon.intersection(Line((x0, y0), (x1, y1))) match {
case NoResult => return
case PointResult(p) => (p, None)
case LineResult(l) =>
Expand All @@ -386,6 +386,8 @@ object Rasterizer {
(p0, Some(p1))
else
(p1, Some(p0))
case _ =>
throw new RuntimeException("Impossible result of line segment intersection")
}

var (cellX, cellY) = {
Expand Down

0 comments on commit ef14974

Please sign in to comment.