<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USDKit",
  "identifier" : "/documentation/USDKit/USDValue/Matrix3f",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit8USDValueV8Matrix3fV"
  },
  "title" : "USDValue.Matrix3f"
}
-->

# USDValue.Matrix3f

A 3x3 matrix of single-precision floating-point values.

```
@frozen struct Matrix3f
```

## Topics

### Initializers

[`init(float3x3)`](/documentation/USDKit/USDValue/Matrix3f/init(_:))

Creates a matrix from a SIMD `float3x3` matrix.

[`init(Float, Float, Float, Float, Float, Float, Float, Float, Float)`](/documentation/USDKit/USDValue/Matrix3f/init(_:_:_:_:_:_:_:_:_:))

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

[`init(diagonal: Float)`](/documentation/USDKit/USDValue/Matrix3f/init(diagonal:))

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

### Instance Properties

[`var matrix: float3x3`](/documentation/USDKit/USDValue/Matrix3f/matrix)

The matrix as a SIMD `float3x3`.

### Subscripts

[`subscript(Int) -> USDValue.Matrix3f.VectorType`](/documentation/USDKit/USDValue/Matrix3f/subscript(_:))

Accesses the row at the specified index.

[`subscript(column _: Int) -> USDValue.Matrix3f.VectorType`](/documentation/USDKit/USDValue/Matrix3f/subscript(column:))

Accesses the column at the specified index.

### Type Aliases

[`typealias VectorType`](/documentation/USDKit/USDValue/Matrix3f/VectorType)

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`Escapable`](/documentation/Swift/Escapable)

[`Sendable`](/documentation/Swift/Sendable)

[`Copyable`](/documentation/Swift/Copyable)

[`USDValueProtocol`](/documentation/USDKit/USDValueProtocol)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)