vector llGroundSlope(vector offset);
Returns the slope of the ground at the object's position + offset
The slope of the ground is direction the land is 'laying'. It is always orthogonal
Example: A 'cliff' would have a slope of approximately <0, 0, -1> (pointing down).
Compare to llGroundContour
This article wasn't helpful for you? Maybe the related article at the LSL Portal
is able to bring enlightenment.