calculate second point from origin