• + 0 comments

    My code in Kotlin:

    fun findPoint(px: Int, py: Int, qx: Int, qy: Int): Array<Int> {
        val rx = qx + (qx-px)
        val ry = qy + (qy-py)
        return arrayOf(rx, ry)
    }