A 4x4 matrix of single-precision floating-point values.
Members (7)
get · iOS 27.0+
description
TypeScript
get description(): string
Swift declaration
var description: String { get }
A textual representation of this instance.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the `String(describing:)`
initializer. This initializer works with any type, and uses the custom
`description` property for types that conform to
`CustomStringConvertible`:
struct Point: CustomStringConvertible {
let x: Int, y: Int
var description: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(describing: p)
print(s)
// Prints "(21, 30)"
The conversion of `p` to a string in the assignment to `s` uses the
`Point` type's `description` property.
get · iOS 27.0+
projectiveTransform
TypeScript
get projectiveTransform(): _Spatial_ProjectiveTransform3DFloat
Swift declaration
var projectiveTransform: ProjectiveTransform3DFloat { get }
The matrix as a Spatial projective transform.
subscript · iOS 27.0+
subscript
TypeScript
subscriptColumn(index: number): number[]
Swift declaration
subscript(column index: Int) -> USDValue.Matrix4f.VectorType { get set }
Accesses the column at the specified index.
init · iOS 27.0+
init
TypeScript
static initDiagonal(s: number): USDValue_Matrix4f
Swift declaration
init(diagonal s: Float)
Creates a diagonal matrix with `s` on the diagonal and zeros elsewhere.