Added point in triangle function