Reflect a point across a line

From AtCoder. Point reflection across a line. Solve the geometry problem "Reflect a point across a line".

Examples
Input: [1,2,3]
Output: 0
Hints

Reflect a point across a line

**From AtCoder.** Point reflection across a line. Solve the geometry problem "Reflect a point across a line".