removing use of complex objects for cheking triangle contains