From 8927a7c7b797a5e187174284e3fa8f30aa25503e Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Wed, 22 Nov 2017 18:16:18 -0500 Subject: [PATCH] Fixed CGAffineTransform --- Sources/Silica/CGAffineTransform.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/Silica/CGAffineTransform.swift b/Sources/Silica/CGAffineTransform.swift index b6cb61a..9ad9a43 100644 --- a/Sources/Silica/CGAffineTransform.swift +++ b/Sources/Silica/CGAffineTransform.swift @@ -26,6 +26,16 @@ public struct CGAffineTransform { // MARK: - Initialization + public init(a: CGFloat, b: CGFloat, c: CGFloat, d: CGFloat, tx: CGFloat, ty: CGFloat) { + + self.a = a + self.b = b + self.c = c + self.d = d + self.tx = tx + self.ty = ty + } + public static let identity = CGAffineTransform(a: 1, b: 0, c: 0, d: 1, tx: 0, ty: 0) }