         return inchDiagonal * point / pointDiagonal
     }
     
-    func toMm(inch:CGFloat)->CGFloat{
+    public func toMm(inch:CGFloat)->CGFloat{
         return inch * 25.4
     }
     
-    func toCm(inch:CGFloat)->CGFloat{
+    public func toCm(inch:CGFloat)->CGFloat{
         return inch * 2.54
     }
     
-    func toInch(mm:CGFloat)->CGFloat{
+    public func toInch(mm:CGFloat)->CGFloat{
         return mm / 25.4
     }
     
-    func toInch(cm:CGFloat)->CGFloat{
+    public func toInch(cm:CGFloat)->CGFloat{
         return cm / 2.54
     }
     
-    private func platform() -> String {
+    func platform() -> String {
         var size : Int = 0
         sysctlbyname("hw.machine", nil, &size, nil, 0)
         var machine = [CChar](repeating: 0, count: Int(size))

        self.inchRatio = pointWidth / inchWidth
    }
    
    private func displayInch()->CGFloat{
        let bounds = UIScreen.main.bounds
        let width = bounds.width < bounds.height ? bounds.width : bounds.height
        let height = bounds.height > bounds.width ? bounds.height : bounds.width


public struct TSScale {
    
    var inchRatio:CGFloat = 0
    var iPadMiniPlatforms:[String] = ["iPad2,5","iPad2,6","iPad2,7","iPad4,4","iPad4,5","iPad4,6","iPad4,7","iPad4,8","iPad4,9","iPad5,1","iPad5,2"]
    
    public init() {
        let inchDiagonal = displayInch()
        let bounds = UIScreen.main.bounds
        let pointWidth = bounds.width
