Skip to content

Instantly share code, notes, and snippets.

@mikhailusachev
Created December 19, 2016 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikhailusachev/ff9ba2bcd40304317a2a1f6e2b9287dc to your computer and use it in GitHub Desktop.
Save mikhailusachev/ff9ba2bcd40304317a2a1f6e2b9287dc to your computer and use it in GitHub Desktop.
test pav
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()
}
@mikhailusachev
Copy link
Author

interpolator() is a function, Doesn't work with PairAdjacentViolators(listOf(Point(1.0, 42.0)) though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment