get Location of line relative to boundary box