foci property

List<Point> get foci

The two foci of the ellipse

Foci are along the major axis.

Implementation

List<Point> get foci {
  final d = focalDistance;
  if (radiusX >= radiusY) {
    return [
      Point(center.x - d, center.y),
      Point(center.x + d, center.y),
    ];
  } else {
    return [
      Point(center.x, center.y - d),
      Point(center.x, center.y + d),
    ];
  }
}