One Logo Pool Ball
USDKit · IOS API REFERENCE

USDValue.Matrix4d

struct · iOS 27.0+ · SDK 27.1

@frozen struct Matrix4d

A 4x4 matrix of double-precision floating-point values.

Members (9)

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_ProjectiveTransform3D
Swift declaration
var projectiveTransform: ProjectiveTransform3D { 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.Matrix4d.VectorType { get set }

Accesses the column at the specified index.

init · iOS 27.0+

init

TypeScript
static initDiagonal(s: number): USDValue_Matrix4d
Swift declaration
init(diagonal s: Double)

Creates a diagonal matrix with `s` on the diagonal and zeros elsewhere.

get · iOS 27.0+

valueType

TypeScript
static get valueType(): USDPrim_Attribute_ValueType
Swift declaration
static var valueType: USDPrim.Attribute.ValueType { get }
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_Matrix4d
Swift declaration
init(_ m00: Double, _ m01: Double, _ m02: Double, _ m03: Double, _ m10: Double, _ m11: Double, _ m12: Double, _ m13: Double, _ m20: Double, _ m21: Double, _ m22: Double, _ m23: Double, _ m30: Double, _ m31: Double, _ m32: Double, _ m33: Double)

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

init · iOS 27.0+

init

TypeScript
static init33152(projectiveTransform: _Spatial_ProjectiveTransform3D): USDValue_Matrix4d
Swift declaration
init(_ projectiveTransform: ProjectiveTransform3D)

Creates a matrix from a Spatial projective transform (double-precision). `ProjectiveTransform3D` is column-major and treats vectors as column vectors; `Matrix4d` is row-major and treats vectors as row vectors. The in-memory layout is identical, so this initializer reads each `m[col, row]` element and lays it out row-major.

init · iOS 27.0+

init

TypeScript
static init85405(projectiveTransform: _Spatial_ProjectiveTransform3DFloat): USDValue_Matrix4d
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.Matrix4d.VectorType { get set }

Accesses the row at the specified index.

Skipped declarations

No declarations were skipped in this snapshot.

All USDKit types →