Derive traits for Triangle