made computeLineHeight and computeSlope methods public (are used in Coastcolour)
(cherry picked from commit 69c9d0b)