NormalizedCenterable
public protocol NormalizedCenterable
By conforming to this protocol you indicate, that a sprite model or sprite view supports using a normalized center.
-
The normalized center.
x
is relative to the width of the untransformed image,y
is relative to the height of the untransformed image. The origin is at the top left of the image.Declaration
Swift
var normalizedCenter: CGPoint { get set }