Skip to content

Instantly share code, notes, and snippets.

@jezinka

jezinka/Fern.kt Secret

Last active July 24, 2017 14:21
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 jezinka/8b359c7d2aa0183e9972bc178d6786d2 to your computer and use it in GitHub Desktop.
Save jezinka/8b359c7d2aa0183e9972bc178d6786d2 to your computer and use it in GitHub Desktop.
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