Skip to content

Instantly share code, notes, and snippets.

@agustarc
Created April 1, 2019 13:33
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 agustarc/ef98561076ae1c5a8b40cfb10eaa0171 to your computer and use it in GitHub Desktop.
Save agustarc/ef98561076ae1c5a8b40cfb10eaa0171 to your computer and use it in GitHub Desktop.
class Point(val x: Double, val y: Double) {
companion object {
fun fromPolar(angle: Double, radius: Double) = Point(...)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment