---
title: cornerPoints
framework: spatial
role: symbol
role_heading: Instance Property
path: spatial/rect3dfloat/cornerpoints
---

# cornerPoints

Returns the corner points of the rectangle.

## Declaration

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

## Discussion

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.
