new inTriangle method