Method Clone
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Clone()
Creates a copy of this rectangle.
public GeoRectangle2 Clone()
Returns
- GeoRectangle2
A new rectangle with the same center, size, and rotation.
Remarks
Rectangle is a readonly struct, so plain assignment already produces an independent copy and this method is not needed to avoid sharing. It exists so that every geometry type offers the same way to ask for a copy.