Structures
The following structures are available globally.
-
No overview available.
See moreDeclaration
Swift
public struct CGVector4
extension CGVector4: ExpressibleByArrayLiteral
extension CGVector4: Interpolatable
extension CGVector4: Equatable
-
This whole file exists basically because SIMD doesn’t support CGFloat and without this file, you’d be doing things like
See moretransform.position.x = Double(value)
:( So everything here just bridges CGFloats to Doubles and uses their simd equivalents. Technically CGFloat can be Float or Double (32bit or 64bit) but everything is 64bit nowadays so, if it’s really necessary it can be added later.Declaration
Swift
public struct CGVector3
extension CGVector3: ExpressibleByArrayLiteral
extension CGVector3: Interpolatable
extension CGVector3: Equatable
-
No overview available.
See moreDeclaration
Swift
public struct CGQuaternion
extension CGQuaternion: Interpolatable
extension CGQuaternion: Equatable