<!--
{
  "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/sheared(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So13SPRect3DFloata7SpatialE7shearedyAbC15AxisWithFactorsOF"
  },
  "title" : "sheared(_:)"
}
-->

# sheared(_:)

Returns a sheared rectangle.

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

## Parameters

`shear`

The axis and shear factors.

## 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.

---

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)