One Logo Pool Ball
USDKit · IOS API REFERENCE

USDValue.Matrix4f

struct · iOS 27.0+ · SDK 27.1

@frozen struct Matrix4f

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.

init · iOS 27.0+

init

TypeScript
static init(m00: number, m01: number, m02: number, m03: number, m10: number, m11: number, m12: number, m13: number, m20: number, m21: number, m22: number, m23: number, m30: number, m31: number, m32: number, m33: number): USDValue_Matrix4f
Swift declaration
init(_ m00: Float, _ m01: Float, _ m02: Float, _ m03: Float, _ m10: Float, _ m11: Float, _ m12: Float, _ m13: Float, _ m20: Float, _ m21: Float, _ m22: Float, _ m23: Float, _ m30: Float, _ m31: Float, _ m32: Float, _ m33: Float)

Creates a matrix from individual element values in row-major order.

init · iOS 27.0+

init

TypeScript
static init62011(projectiveTransform: _Spatial_ProjectiveTransform3DFloat): USDValue_Matrix4f
Swift declaration
init(_ projectiveTransform: ProjectiveTransform3DFloat)

Creates a matrix from a Spatial projective transform (single-precision).

subscript · iOS 27.0+

subscript

TypeScript
subscript(index: number): number[]
Swift declaration
subscript(index: Int) -> USDValue.Matrix4f.VectorType { get set }

Accesses the row at the specified index.

Skipped declarations

No declarations were skipped in this snapshot.

All USDKit types →