Skip to content

Commit f58792a

Browse files
committed
Remove unused method in SplatRenderer.swift
1 parent cd671fe commit f58792a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

MetalSplatter/Sources/SplatRenderer.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -496,24 +496,6 @@ extension SplatRenderer.Splat {
496496
rotation: rotation)
497497
}
498498

499-
static func quaternionToMatrix(quaternion: simd_quatf) -> simd_float3x3 {
500-
var rotationMatrix = simd_float3x3()
501-
let x = quaternion.imag.x
502-
let y = quaternion.imag.y
503-
let z = quaternion.imag.z
504-
let w = quaternion.real
505-
rotationMatrix[0, 0] = 1 - 2 * (z * z + w * w)
506-
rotationMatrix[0, 1] = 2 * (y * z + x * w)
507-
rotationMatrix[0, 2] = 2 * (y * w - x * z)
508-
rotationMatrix[1, 0] = 2 * (y * z - x * w)
509-
rotationMatrix[1, 1] = 1 - 2 * (y * y + w * w)
510-
rotationMatrix[1, 2] = 2 * (z * w + x * y)
511-
rotationMatrix[2, 0] = 2 * (y * w + x * z)
512-
rotationMatrix[2, 1] = 2 * (z * w - x * y)
513-
rotationMatrix[2, 2] = 1 - 2 * (y * y + z * z)
514-
return rotationMatrix
515-
}
516-
517499
init(position: SIMD3<Float>,
518500
color: SIMD4<Float>,
519501
scale: SIMD3<Float>,

0 commit comments

Comments
 (0)