ensure that nx,ny are of type <int>
add simple intersection test for Lines