I added truly terrible lighting to this! I'm just calculating the area of a quadrilateral constructed of neighboring points and comparing the area of said quadrilateral to the area it would have if the points were at equal height.