From 15d6a80516aa626d0160cd2ee4f96feb8b4dcc2e Mon Sep 17 00:00:00 2001 From: Paul Zabelin Date: Sat, 16 Mar 2019 09:43:29 -0700 Subject: [PATCH] add file private to matrices extenstions --- Pod/Classes/Matrix3x3+3D.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Pod/Classes/Matrix3x3+3D.swift b/Pod/Classes/Matrix3x3+3D.swift index 2b0db8e..2a43e72 100644 --- a/Pod/Classes/Matrix3x3+3D.swift +++ b/Pod/Classes/Matrix3x3+3D.swift @@ -26,7 +26,7 @@ extension Matrix4x3Type { 0 1 0 0 0 0 0 1 */ - static let zeroColumnBeforeLast: Matrix4x3Type = { + fileprivate static let zeroColumnBeforeLast: Matrix4x3Type = { let identity = Matrix3x3Type(diagonal: .one) var columns = Vector3Type.indexArray.map {identity[$0]} columns.insert(.zero, at: Vector3Type.lastIndex) @@ -41,15 +41,15 @@ extension Matrix3x4Type { 0 0 0 0 0 1 */ - static let zeroRowBeforeLast: Matrix3x4Type = Matrix4x3Type.zeroColumnBeforeLast.transpose + fileprivate static let zeroRowBeforeLast: Matrix3x4Type = Matrix4x3Type.zeroColumnBeforeLast.transpose - func insertColumnBeforeLast() -> Matrix4x4Type { + fileprivate func insertColumnBeforeLast() -> Matrix4x4Type { return self * .zeroColumnBeforeLast } } extension Matrix3x3Type { - func insertRowBeforeLast() -> Matrix3x4Type { + fileprivate func insertRowBeforeLast() -> Matrix3x4Type { return .zeroRowBeforeLast * self }