Skip to content

Instantly share code, notes, and snippets.

@jezinka

jezinka/Fern.kt Secret

Last active Jul 24, 2017
Embed
What would you like to do?
fun newX(function: String, i: Int): Float {
val a = matrix[function]!![A]!!
val b = matrix[function]!![B]!!
val e = matrix[function]!![E]!!
return (a * getX(i) + b * getY(i) + e)
}
fun newY(function: String, i: Int): Float {
val c = matrix[function]!![C]!!
val d = matrix[function]!![D]!!
val f = matrix[function]!![F]!!
return (c * getX(i) + d * getY(i) + f)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment