benleggiero
02/02/2017, 9:40 PMoverride fun currentSegment(coords: DoubleArray?): Int {
try { // prepare to defer
if (coords != null) {
coords[0] = (if (isEndPoint) end else start).x
coords[1] = (if (isEndPoint) end else start).y
}
return if (isEndPoint) SEG_LINETO else SEG_MOVETO
} finally { // defer
if (isEndPoint) {
didProcessEndPoint = true
}
}
}