From f58792a96db433aab3264b2e0af1e91ec9b3629f Mon Sep 17 00:00:00 2001 From: Sean Cier Date: Mon, 12 Feb 2024 22:36:36 -0800 Subject: [PATCH] Remove unused method in SplatRenderer.swift --- MetalSplatter/Sources/SplatRenderer.swift | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/MetalSplatter/Sources/SplatRenderer.swift b/MetalSplatter/Sources/SplatRenderer.swift index 11271da..0f150e7 100644 --- a/MetalSplatter/Sources/SplatRenderer.swift +++ b/MetalSplatter/Sources/SplatRenderer.swift @@ -496,24 +496,6 @@ extension SplatRenderer.Splat { rotation: rotation) } - static func quaternionToMatrix(quaternion: simd_quatf) -> simd_float3x3 { - var rotationMatrix = simd_float3x3() - let x = quaternion.imag.x - let y = quaternion.imag.y - let z = quaternion.imag.z - let w = quaternion.real - rotationMatrix[0, 0] = 1 - 2 * (z * z + w * w) - rotationMatrix[0, 1] = 2 * (y * z + x * w) - rotationMatrix[0, 2] = 2 * (y * w - x * z) - rotationMatrix[1, 0] = 2 * (y * z - x * w) - rotationMatrix[1, 1] = 1 - 2 * (y * y + w * w) - rotationMatrix[1, 2] = 2 * (z * w + x * y) - rotationMatrix[2, 0] = 2 * (y * w + x * z) - rotationMatrix[2, 1] = 2 * (z * w - x * y) - rotationMatrix[2, 2] = 1 - 2 * (y * y + z * z) - return rotationMatrix - } - init(position: SIMD3, color: SIMD4, scale: SIMD3,