TSegment2::update_from_endpoints

Update segment based on new endpoints