 		matrix.matrix[2][2] = s.2
 		return matrix
 	}
-	
+
 	static func rotationMatrix(angle: Scalar, axis: Point3) -> Matrix4 {
 		var matrix = Matrix4()
 		let u = normalized(axis)
 		let c = cos(angle)
 		let mc = 1.0 - c
 		let s = sin(angle)
-		
+
 		let xy = u.0 * u.1 * mc
 		let xz = u.0 * u.2 * mc
 		let yz = u.1 * u.2 * mc

		matrix.matrix[2][3] = t.2
		return matrix
	}
	
	static func scaleMatrix(_ x: Scalar) -> Matrix4 {
		return Matrix4.scaleMatrix((x, x, x))
	}
	
	static func scaleMatrix(_ s: Point3) -> Matrix4 {
		var matrix = Matrix4()
		matrix.matrix[0][0] = s.0

struct Matrix4 {
	var matrix: [Scalar] = [
		//0	  1	   2	3
		1.0, 0.0, 0.0, 0.0,
		//4	  5	   6	7
		0.0, 1.0, 0.0, 0.0,
		//8	  9	   10	11
		0.0, 0.0, 1.0, 0.0,
		//12  13   14	15
		0.0, 0.0, 0.0, 1.0
	]
	
