reuse zero from simd

This commit is contained in:
Paul Zabelin
2019-04-09 13:37:04 -07:00
parent b14b38c37d
commit b0455dfef6
2 changed files with 1 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ public func ≈(lhs: Expectation<[Vector3]>, rhs: (expected: [Vector3], delta: D
extension Matrix3x3 {
init(_ array: [Scalar]) {
let rows = 3
let rows = Vector3().scalarCount
let scalars = rows * rows
precondition(array.count == scalars, "should have 9 values for 3x3 matrix")
var rowsOfVectors: [Vector3] = []