SpriteAlignment
class
class SpriteAlignment {
static Vector2 _topLeft;
static Vector2 get topLeft => (_topLeft == null) ? _topLeft = new Vector2( 1.0, -1.0 ): _topLeft;
static Vector2 _topCenter;
static Vector2 get topCenter => (_topCenter == null) ? _topCenter = new Vector2( 0.0, -1.0 ): _topCenter;
static Vector2 _topRight;
static Vector2 get topRight => (_topRight == null) ? _topRight = new Vector2( -1.0, -1.0 ): _topRight;
static Vector2 _centerLeft;
static Vector2 get centerLeft => (_centerLeft == null) ? _centerLeft = new Vector2( 1.0, 0.0 ): _centerLeft;
static Vector2 _center;
static Vector2 get center => (_center == null) ? _center = new Vector2.zero(): _center;
static Vector2 _centerRight;
static Vector2 get centerRight => (_centerRight == null) ? _centerRight = new Vector2( -1.0, 0.0 ): _centerRight;
static Vector2 _bottomLeft;
static Vector2 get bottomLeft => (_bottomLeft == null) ? _bottomLeft = new Vector2( 1.0, 1.0 ): _bottomLeft;
static Vector2 _bottomCenter;
static Vector2 get bottomCenter => (_bottomCenter == null) ? _bottomCenter = new Vector2( 0.0, 1.0 ): _bottomCenter;
static Vector2 _bottomRight;
static Vector2 get bottomRight => (_bottomRight == null) ? _bottomRight = new Vector2( -1.0, 1.0 ): _bottomRight;
}
Static Properties
final Vector2 bottomCenter #
static Vector2 get bottomCenter => (_bottomCenter == null) ? _bottomCenter = new Vector2( 0.0, 1.0 ): _bottomCenter;
final Vector2 bottomLeft #
static Vector2 get bottomLeft => (_bottomLeft == null) ? _bottomLeft = new Vector2( 1.0, 1.0 ): _bottomLeft;
final Vector2 bottomRight #
static Vector2 get bottomRight => (_bottomRight == null) ? _bottomRight = new Vector2( -1.0, 1.0 ): _bottomRight;
final Vector2 center #
static Vector2 get center => (_center == null) ? _center = new Vector2.zero(): _center;
final Vector2 centerLeft #
static Vector2 get centerLeft => (_centerLeft == null) ? _centerLeft = new Vector2( 1.0, 0.0 ): _centerLeft;
final Vector2 centerRight #
static Vector2 get centerRight => (_centerRight == null) ? _centerRight = new Vector2( -1.0, 0.0 ): _centerRight;
final Vector2 topCenter #
static Vector2 get topCenter => (_topCenter == null) ? _topCenter = new Vector2( 0.0, -1.0 ): _topCenter;
final Vector2 topLeft #
static Vector2 get topLeft => (_topLeft == null) ? _topLeft = new Vector2( 1.0, -1.0 ): _topLeft;
final Vector2 topRight #
static Vector2 get topRight => (_topRight == null) ? _topRight = new Vector2( -1.0, -1.0 ): _topRight;