On the Simson–Wallace theorem