Created
December 19, 2016 18:37
-
-
Save mikhailusachev/ff9ba2bcd40304317a2a1f6e2b9287dc to your computer and use it in GitHub Desktop.
test pav
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.sanity.pav.PairAdjacentViolators | |
import com.github.sanity.pav.Point | |
import java.io.FileOutputStream | |
import java.io.ObjectOutputStream | |
fun main(args: Array<String>) { | |
val interpolator = PairAdjacentViolators(listOf( | |
Point(1.0, 42.0)) | |
).interpolator() | |
val fout = FileOutputStream("save.me") | |
val oos = ObjectOutputStream(fout) | |
oos.writeObject(interpolator) | |
fout.close() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
interpolator() is a function, Doesn't work with PairAdjacentViolators(listOf(Point(1.0, 42.0)) though.