Skip to content

Commit 034d901

Browse files
committed
Add .determinant
1 parent 04d9ed0 commit 034d901

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Matrix4x4+simd.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ public struct Matrix4x4f: Codable, Equatable {
4848
public var inversed: Matrix4x4f {
4949
return unsafeBitCast(d.inverse, to: Matrix4x4f.self)
5050
}
51+
52+
public var determinant: Float {
53+
return d.determinant
54+
}
5155

5256
// MARK: - subscript operations
5357

0 commit comments

Comments
 (0)