Anchor2D.withHorizontalAndVertical constructor
- double horizontal,
- double vertical
Creates a new instance of an Anchor2D.
-
horizontalDefines the x axis where the left is 0, the right is 1 and the middle is 0.5. -
verticalDefines the y axis where the top is 0, the bottom is 1 and the middle is 0.5.
Implementation
factory Anchor2D.withHorizontalAndVertical(double horizontal, double vertical) => $prototype.withHorizontalAndVertical(horizontal, vertical);