RectPoints.fromActor constructor

RectPoints.fromActor(
  1. Actor actor
)

Implementation

RectPoints.fromActor(Actor actor)
    : this(
        anchor: actor.anchor,
        topLeft: actor.absolutePositionOfAnchor(Anchor.topLeft),
        topRight: actor.absolutePositionOfAnchor(Anchor.topRight),
        bottomLeft: actor.absolutePositionOfAnchor(Anchor.bottomLeft),
        bottomRight: actor.absolutePositionOfAnchor(Anchor.bottomRight),
      );