One Logo Pool Ball
USDKit · IOS API REFERENCE

USDValue.Matrix2d

struct · iOS 27.0+ · SDK 27.1

@frozen struct Matrix2d

A 2x2 matrix of double-precision floating-point values.

Members (6)

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.

subscript · iOS 27.0+

subscript

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

Accesses the column at the specified index.

init · iOS 27.0+

init

TypeScript
static initDiagonal(s: number): USDValue_Matrix2d
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, m10: number, m11: number): USDValue_Matrix2d
Swift declaration
init(_ m00: Double, _ m01: Double, _ m10: Double, _ m11: Double)

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

subscript · iOS 27.0+

subscript

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

Accesses the row at the specified index.

Skipped declarations

No declarations were skipped in this snapshot.

All USDKit types →