NormalizedPlaceable

public protocol NormalizedPlaceable : NormalizedCenterable, NormalizedSizable

By conforming to this protocol you indicate, that a sprite model or sprite view supports using a normalized center and normalized size.

  • The normalized frame. x and width are relative to the width of the untransformed image, y and height are relative to the height of the untransformed image. The origin is at the top left of the image.

    Declaration

    Swift

    var normalizedRect: CGRect { get set }