<!--
{
  "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/Vec2d",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit8USDValueV5Vec2dV"
  },
  "title" : "USDValue.Vec2d"
}
-->

# USDValue.Vec2d

A 2-component double-precision vector.

```
@frozen struct Vec2d
```

## Topics

### Initializers

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

Creates a zero vector.

[`init(SIMD2<Double>)`](/documentation/USDKit/USDValue/Vec2d/init(_:))

Creates a vector from a `SIMD2<Double>`.

[`init(Double, Double)`](/documentation/USDKit/USDValue/Vec2d/init(_:_:))

Creates a vector with the given components.

### Instance Properties

[`var simd: SIMD2<Double>`](/documentation/USDKit/USDValue/Vec2d/simd)

The vector as a `SIMD2<Double>`.

[`var x: Double`](/documentation/USDKit/USDValue/Vec2d/x)

[`var y: Double`](/documentation/USDKit/USDValue/Vec2d/y)

### Subscripts

[`subscript(Int) -> Double`](/documentation/USDKit/USDValue/Vec2d/subscript(_:))

Accesses the component at the specified index.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

---

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)