Subscript
This commit is contained in:
parent
7ace3b8119
commit
eb6879f5a3
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ fun main() {
|
|||
val dy = antenna.y - coordinate.y
|
||||
val secondAntenna = Grid.Coordinate(antenna.x + dx, antenna.y + dy)
|
||||
|
||||
secondAntenna != antenna && grid.inside(secondAntenna) && grid.get(secondAntenna) == frequency
|
||||
secondAntenna != antenna && grid.inside(secondAntenna) && grid[secondAntenna] == frequency
|
||||
}
|
||||
|
||||
fun isAntinode(coordinate: Grid.Coordinate) =
|
||||
|
|
Loading…
Add table
Reference in a new issue