Functional method for triangle area and inclusion of points in it