lineNearAngle

fun lineNearAngle(x1: Float, y1: Float, x2: Float, y2: Float): Float(source)

Returns how far the line from (x1, y1) to (x2, y2) is from its nearest horizontal or vertical axis, in degrees from 0 through 45.