You are viewing a single comment's thread. Return to all comments →
Swift solution
func findPoint(px: Int, py: Int, qx: Int, qy: Int) -> [Int] { return [qx*2-px, qy*2-py] }
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Point
You are viewing a single comment's thread. Return to all comments →
Swift solution
func findPoint(px: Int, py: Int, qx: Int, qy: Int) -> [Int] { return [qx*2-px, qy*2-py] }