---
title: "sheared(_:)"
framework: spatial
role: symbol
role_heading: Instance Method
path: "spatial/rect3dfloat/sheared(_:)"
---

# sheared(_:)

Returns a sheared rectangle.

## Declaration

```swift
func sheared(_ shear: AxisWithFactors) -> Rect3DFloat
```

## Parameters

- `shear`: The axis and shear factors.

## Discussion

Discussion Returns The sheared rectangle. Because affine transforms do not preserve rectangles in general, this function returns the smallest rectangle that contains the transformed corner points of the rect parameter.
