Creates a new matrix with the specified scalar value on the main diagonal.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 7.1+
Framework
- simd
Declaration
init(_ scalar: Double)
Creates a new matrix with the specified scalar value on the main diagonal.
SDKs
Framework
init(_ scalar: Double)