Triangle callable from C++