Triangle constructor

const Triangle(
  1. Point a,
  2. Point b,
  3. Point c
)

Creates a triangle from three vertices.

All three points must be distinct.

Implementation

const Triangle(this.a, this.b, this.c) : assert(a != b && b != c && a != c);