damian
02/02/2017, 9:50 PMfun currentSegment(coords: DoubleArray?): Int {
coords?.apply {
val coordinate = if (isEndPoint) end else start
set(0, coordinate.x)
set(1, coordinate.y)
}
if (isEndPoint) {
didProcessEndPoint = true
return SEG_LINETO
}
return SEG_MOVETO
}