---
title: Point3D
framework: spatial
role: symbol
role_heading: Structure
path: spatial/point3d
---

# Point3D

A point in a 3D coordinate system.

## Declaration

```swift
struct Point3D
```

## Topics

### Creating a 3D point structure

- [init()](spatial/point3d/init().md)
- [init(x:y:z:)](spatial/point3d/init(x:y:z:)-3lary.md)
- [init(x:y:z:)](spatial/point3d/init(x:y:z:)-28jhw.md)
- [init(vector:)](spatial/point3d/init(vector:).md)
- [init(_:)](spatial/point3d/init(_:)-1f1ha.md)
- [init(_:)](spatial/point3d/init(_:)-1kved.md)
- [init(_:)](spatial/point3d/init(_:)-34plj.md)
- [init(_:)](spatial/point3d/init(_:)-4gu20.md)
- [init(_:)](spatial/point3d/init(_:)-50tw4.md)

### Inspecting a 3D point’s properties

- [x](spatial/point3d/x.md)
- [y](spatial/point3d/y.md)
- [z](spatial/point3d/z.md)
- [vector](spatial/point3d/vector.md)
- [magnitudeSquared](spatial/point3d/magnitudesquared.md)

### Checking characteristics

- [distance(to:)](spatial/point3d/distance(to:).md)

### Transforming a 3D point structure

- [applying(_:)](spatial/point3d/applying(_:)-1f4em.md)
- [applying(_:)](spatial/point3d/applying(_:)-1f4em.md)
- [applying(_:)](spatial/point3d/applying(_:)-7ulww.md)
- [clamp(to:)](spatial/point3d/clamp(to:).md)
- [scale(by:)](spatial/point3d/scale(by:).md)
- [rotated(by:around:)](spatial/point3d/rotated(by:around:)-4tmfq.md)
- [rotated(by:around:)](spatial/point3d/rotated(by:around:)-chuy.md)
- [unapplying(_:)](spatial/point3d/unapplying(_:)-5hk6t.md)
- [unapplying(_:)](spatial/point3d/unapplying(_:)-7wdtv.md)
- [unapplying(_:)](spatial/point3d/unapplying(_:)-7wdtv.md)

### Comparing values

- [==(_:_:)](spatial/point3d/==(_:_:).md)
- [isApproximatelyEqual(to:tolerance:)](spatial/point3d/isapproximatelyequal(to:tolerance:).md)

### Applying arithmetic operations

- [*(_:_:)](spatial/point3d/*(_:_:)-9rqvh.md)
- [*(_:_:)](spatial/point3d/*(_:_:)-9w7dk.md)
- [*(_:_:)](spatial/point3d/*(_:_:)-8ewep.md)
- [*(_:_:)](spatial/point3d/*(_:_:)-9ak06.md)
- [*(_:_:)](spatial/point3d/*(_:_:)-8wgkb.md)
- [+(_:_:)](spatial/point3d/+(_:_:)-5v6x4.md)
- [+(_:_:)](spatial/point3d/+(_:_:)-4g55.md)
- [-(_:)](spatial/point3d/-(_:).md)
- [-(_:_:)](spatial/point3d/-(_:_:)-6om9g.md)
- [-(_:_:)](spatial/point3d/-(_:_:)-9l6rn.md)
- [-(_:_:)](spatial/point3d/-(_:_:)-5t01r.md)
- [+=(_:_:)](spatial/point3d/+=(_:_:)-80hjz.md)
- [+=(_:_:)](spatial/point3d/+=(_:_:)-3v0zk.md)
- [-=(_:_:)](spatial/point3d/-=(_:_:)-23bow.md)
- [-=(_:_:)](spatial/point3d/-=(_:_:)-9xu2.md)
- [*=(_:_:)](spatial/point3d/*=(_:_:).md)
- [/(_:_:)](spatial/point3d/_(_:_:).md)
- [/=(_:_:)](spatial/point3d/_=(_:_:).md)

### Deprecated symbols

- [rotation(to:)](spatial/point3d/rotation(to:).md)
- [origin](spatial/point3d/origin.md)
- [simd](spatial/point3d/simd.md)

### Initializers

- [init(_:)](spatial/point3d/init(_:)-7wgtj.md)
- [init(_:)](spatial/point3d/init(_:)-8r7om.md)

### Default Implementations

- [Animatable Implementations](spatial/point3d/animatable-implementations.md)
- [ClampableWithinRectProtocol Implementations](spatial/point3d/clampablewithinrectprotocol-implementations.md)
- [CustomReflectable Implementations](spatial/point3d/customreflectable-implementations.md)
- [Decodable Implementations](spatial/point3d/decodable-implementations.md)
- [Encodable Implementations](spatial/point3d/encodable-implementations.md)
- [Equatable Implementations](spatial/point3d/equatable-implementations.md)
- [Hashable Implementations](spatial/point3d/hashable-implementations.md)
- [Primitive3D Implementations](spatial/point3d/primitive3d-implementations.md)

## Relationships

### Conforms To

- [Animatable](swiftui/animatable.md)
- [ClampableWithinRectProtocol](spatial/clampablewithinrectprotocol.md)
- [Copyable](swift/copyable.md)
- [CustomReflectable](swift/customreflectable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Primitive3D](spatial/primitive3d.md)
- [Primitive3DProtocol](spatial/primitive3dprotocol.md)
- [ProjectiveTransformable3D](spatial/projectivetransformable3d.md)
- [Rotatable3D](spatial/rotatable3d.md)
- [Rotatable3DProtocol](spatial/rotatable3dprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SpatialTypeProtocol](spatial/spatialtypeprotocol.md)
- [Translatable3D](spatial/translatable3d.md)
- [Translatable3DProtocol](spatial/translatable3dprotocol.md)

## See Also

### 3D primitives

- [Point3DFloat](spatial/point3dfloat.md)
- [Size3D](spatial/size3d.md)
- [Size3DFloat](spatial/size3dfloat.md)
- [Rect3D](spatial/rect3d.md)
- [Rect3DFloat](spatial/rect3dfloat.md)
- [Rotation3D](spatial/rotation3d.md)
- [Rotation3DFloat](spatial/rotation3dfloat.md)
- [RotationAxis3D](spatial/rotationaxis3d.md)
- [RotationAxis3DFloat](spatial/rotationaxis3dfloat.md)
- [Pose3D](spatial/pose3d.md)
- [Pose3DFloat](spatial/pose3dfloat.md)
- [ScaledPose3D](spatial/scaledpose3d.md)
- [ScaledPose3DFloat](spatial/scaledpose3dfloat.md)
- [SphericalCoordinates3D](spatial/sphericalcoordinates3d.md)
- [SphericalCoordinates3DFloat](spatial/sphericalcoordinates3dfloat.md)
