port SlopeView and SlopeInterceptView (untested)