Skip to content

Instantly share code, notes, and snippets.

Created June 2, 2016 06:24
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 anonymous/dfc78d8211e021c50c12289e1ed543e5 to your computer and use it in GitHub Desktop.
Save anonymous/dfc78d8211e021c50c12289e1ed543e5 to your computer and use it in GitHub Desktop.
the description for this gist
case class Position(x: Double, y: Double, heading: Degree)
case class Degree(private val d: Int) {
val value = d % 360
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment