-
-
Save jezinka/8b359c7d2aa0183e9972bc178d6786d2 to your computer and use it in GitHub Desktop.
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
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