compute method

Face2 compute()

Implementation

Face2 compute() {
  // todo test ???
  final triangle = Triangle();

  final a = edge!.tail()!;
  final b = edge!.head();
  final c = edge!.next!.head();

  triangle.set(a.point, b.point, c.point);

  triangle.getNormal(normal);
  triangle.getMidpoint(midpoint);
  area = triangle.getArea();

  constant = normal.dot(midpoint);

  return this;
}