Skip to content

Instantly share code, notes, and snippets.

@RafaRuiz
Created January 12, 2018 18:46
Show Gist options
  • Save RafaRuiz/587cf7a47abcefca935af4342d9ad49c to your computer and use it in GitHub Desktop.
Save RafaRuiz/587cf7a47abcefca935af4342d9ad49c to your computer and use it in GitHub Desktop.
Rectangle Model for Unit tests
/**
* o1----------------------o
* | |
* | |
* | |
* o-----------------------o2
*
* @param topLeftPoint would be o1
* @param bottomleftPoint would be o2
*/
class RectangleModel constructor(
private val topLeftPoint: Point,
private val bottomleftPoint: Point)
class Point constructor(val x: Int,
val y: Int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment