A matrix of three columns and four rows containing single-precision values.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
Framework
- simd
Declaration
struct simd_float3x4
A matrix of three columns and four rows containing single-precision values.
SDKs
Framework
struct simd_float3x4
init()
Creates a new matrix.
init(Float)
Creates a new matrix with the specified scalar value on the main diagonal.
init(diagonal: SIMD3<Float>)
Creates a new matrix with the specified vector on the main diagonal.
init([SIMD4<Float>])
Creates a new matrix from an array.
init(SIMD4<Float>, SIMD4<Float>, SIMD4<Float>)
Creates a new matrix with the specified vectors as columns.
init(columns: (simd _float4, simd _float4, simd _float4))
Creates a new matrix with the specified columns.
init(rows: [SIMD3<Float>])
Creates a new matrix with the specified rows.
var transpose: float4x3
The transpose of the matrix.
var columns: (simd _float4, simd _float4, simd _float4)
The columns of the matrix.
var debug Description: String
A representation of the matrix that is suitable for debugging.
func simd _matrix(simd _float4, simd _float4, simd _float4) -> simd _float3x4
Returns a new matrix with the specified columns.
func simd _matrix _from _rows(simd _float3, simd _float3, simd _float3, simd _float3) -> simd _float3x4
Returns a new matrix with the specified rows.
func simd _equal(simd _float3x4, simd _float3x4) -> simd _bool
Returns true if every element in a matrix is exactly equal to the corresponding element in a second matrix.
func simd _almost _equal _elements(simd _float3x4, simd _float3x4, Float) -> simd _bool
Returns true if every element in a matrix is within a specified tolerance to the corresponding element in a second matrix.
func simd _almost _equal _elements _relative(simd _float3x4, simd _float3x4, Float) -> simd _bool
Returns true if every element in a matrix is within a specified single-precision relative tolerance to the corresponding element in a second matrix.
func simd _add(simd _float3x4, simd _float3x4) -> simd _float3x4
Returns the sum of two matrices.
func simd _sub(simd _float3x4, simd _float3x4) -> simd _float3x4
Returns the difference of two matrices.
func simd _mul(Float, simd _float3x4) -> simd _float3x4
Returns the product of a scalar and a matrix.
func simd _mul(simd _float2x4, simd _float3x2) -> simd _float3x4
Returns the product of two matrices.
func simd _mul(simd _float3x4, simd _float3x3) -> simd _float3x4
Returns the product of two matrices.
func simd _linear _combination(Float, simd _float3x4, Float, simd _float3x4) -> simd _float3x4
Returns the linear combination of two scalar values and two matrices.
func simd _transpose(simd _float3x4) -> simd _float4x3
Returns the transpose of a matrix.
subscript(Int) -> SIMD4<Float>
Accesses the column at the specified position.
subscript(Int, Int) -> Float
Accesses the element at the specified position.
init(simd _float3x4)
Deprecatedvar cmatrix: simd _float3x4
Deprecatedstruct simd _float2x2
A matrix of two columns and two rows containing single-precision values.
struct simd _float3x2
A matrix of three columns and two rows containing single-precision values.
struct simd _float4x2
A matrix of four columns and two rows containing single-precision values.
struct simd _float2x3
A matrix of two columns and three rows containing single-precision values.
struct simd _float3x3
A matrix of three columns and three rows containing single-precision values.
struct simd _float4x3
A matrix of four columns and three rows containing single-precision values.
struct simd _float2x4
A matrix of two columns and four rows containing single-precision values.
struct simd _float4x4
A matrix of four columns and four rows containing single-precision values.