convex function

bool convex(
  1. Point previous,
  2. Point current,
  3. Point next
)

Implementation

bool convex(Point previous, Point current, Point next) {
  return (current - previous).clockwise(next - current);
}