Skip to content

Commit

Permalink
Add .determinant
Browse files Browse the repository at this point in the history
  • Loading branch information
xtyxtyx committed Mar 13, 2024
1 parent 04d9ed0 commit 034d901
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Matrix4x4+simd.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ public struct Matrix4x4f: Codable, Equatable {
public var inversed: Matrix4x4f {
return unsafeBitCast(d.inverse, to: Matrix4x4f.self)
}

public var determinant: Float {
return d.determinant
}

// MARK: - subscript operations

Expand Down

0 comments on commit 034d901

Please sign in to comment.