- Prototope Documentation
- Animator
- Border
- CameraLayer
- CameraPosition
- Color
- Gesture
- Heartbeat
- Image
- Layer
- LayerAnimatorStore
- Math
- PanGesture
- Particle
- ParticleEmitter
- ParticlePreset
- Point
- Rect
- Shadow
- Size
- Sound
- TapGesture
- Timestamp
- TouchSample
- TouchSequence
- Tunable
- View as:
- Swift
- JavaScript
Size
Method reference
- ⚓
public init(width: Double = 0, height: Double = 0)
- ⚓
public init(_ size: CGSize)
construct a point from a
CGSize -
Convenience methods
- ⚓
public func ==(a: Point, b: Point) -> Bool
- ⚓
public func ==(a: Size, b: Size) -> Bool
- ⚓
public func +(a: Size, b: Size) -> Size
- ⚓
public func +=(inout a: Size, b: Size)
- ⚓
public func *(a: Size, scalar: Double) -> Size
- ⚓
public func *=(inout a: Size, scalar: Double)
-
Variables
- ⚓
public var width: Double
- ⚓
public var height: Double
- ⚓
public var length: Double