absoluteVertices property

List<Vector2> get absoluteVertices

Implementation

List<Vector2> get absoluteVertices {
  final Vector2 p = absoluteTopLeftPosition;
  final adjustedVerticies =
      absoluteAngle == 0 ? vertices : rotatedVerticesBonfire(absoluteAngle);

  final result = adjustedVerticies.map((element) {
    return element.translated(p.x, p.y);
  }).toList(growable: false);
  return result;
}