Created
January 12, 2018 18:46
-
-
Save RafaRuiz/587cf7a47abcefca935af4342d9ad49c to your computer and use it in GitHub Desktop.
Rectangle Model for Unit tests
This file contains hidden or 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
/** | |
* 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