Skip to content

Commit

Permalink
Fixed CGAffineTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 22, 2017
1 parent c9a2805 commit 8927a7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/Silica/CGAffineTransform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 8927a7c

Please sign in to comment.