<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Rect3DFloat/cornerPoints",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So13SPRect3DFloata7SpatialE12cornerPointsSaySo08SPPoint3B0aGvp"
  },
  "title" : "cornerPoints"
}
-->

# cornerPoints

Returns the corner points of the rectangle.

```
var cornerPoints: [Point3DFloat] { get }
```

## Discussion

This function returns the vertices in a clockwise direction, starting from the origin:

```
           5-----6
           |     |
        1-----2  |
        |  |  |  |        y  z
        |  4--|--7        | /
        |     |           |/
        0-----3           +-- x
```

For example, `points[0]` equals `rect.origin`, and `points[6]` is at  `rect.origin`
offset by `rect.size`.

---

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)