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

# USDValue.Vec4h

A 4-component half-precision vector.

```
@frozen struct Vec4h
```

## Topics

### Initializers

[`init()`](/documentation/USDKit/USDValue/Vec4h/init())

Creates a zero vector.

[`init(Float16, Float16, Float16, Float16)`](/documentation/USDKit/USDValue/Vec4h/init(_:_:_:_:))

Creates a vector with the given components.

### Instance Properties

[`var simd: SIMD4<Float16>`](/documentation/USDKit/USDValue/Vec4h/simd)

The vector as a `SIMD4<Float16>`.

[`var w: Float16`](/documentation/USDKit/USDValue/Vec4h/w)

[`var x: Float16`](/documentation/USDKit/USDValue/Vec4h/x)

[`var y: Float16`](/documentation/USDKit/USDValue/Vec4h/y)

[`var z: Float16`](/documentation/USDKit/USDValue/Vec4h/z)

### Subscripts

[`subscript(Int) -> Float16`](/documentation/USDKit/USDValue/Vec4h/subscript(_:))

Accesses the component at the specified index.

## Relationships

### Conforms To

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

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

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

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

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

[`MetadataValue`](/documentation/USDKit/USDStage/Object/MetadataValue)

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

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

[`Value`](/documentation/USDKit/USDPrim/Attribute/Value)

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

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

---

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)