This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol ObfuscatorProtocol { | |
#if DEBUG | |
func bytesByObfuscatingString(_ string: String) -> [UInt8] | |
#endif | |
func reveal(_ key: [UInt8]) -> String | |
} | |
class Obfuscator: ObfuscatorProtocol { | |
// MARK: - Variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simd | |
extension float4x4 { | |
init(scaleBy s: Float) { | |
self.init(SIMD4<Float>(s, 0, 0, 0), | |
SIMD4<Float>(0, s, 0, 0), | |
SIMD4<Float>(0, 0, s, 0), | |
SIMD4<Float>(0, 0, 0, 1)) | |
} | |
OlderNewer