added signed distance with visual representation