---
title: "Class RotatedRectangleF | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/RotatedRectangleF/"
---

# Class RotatedRectangleF

> **Inheritance:** `System.Object` -> RotatedRectangleF

###### **Namespace**: [Aurigma.DesignAtoms.Model.Math](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math.md)

###### **Assembly**: Aurigma.DesignAtoms.Model.dll

```csharp title="Syntax"
public class RotatedRectangleF
```

## Inherited Members

* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Constructors

### RotatedRectangleF

```csharp
public RotatedRectangleF()
```

### RotatedRectangleF

```csharp
public RotatedRectangleF(float centerX, float centerY, float width, float height, float angle = 0F)
```

### RotatedRectangleF

```csharp
public RotatedRectangleF(RectangleF rect, float angle = 0F)
```

## Properties

### Bounds

```csharp
public RectangleF Bounds { get; }
```

### Center

```csharp
public PointF Center { get; set; }
```

### CenterX

```csharp
public float CenterX { get; set; }
```

### CenterY

```csharp
public float CenterY { get; set; }
```

### Width

```csharp
public float Width { get; set; }
```

### Height

```csharp
public float Height { get; set; }
```

### Angle

```csharp
public float Angle { get; set; }
```

### Location

```csharp
public PointF Location { get; set; }
```

### IsEmpty

```csharp
public bool IsEmpty { get; }
```

## Methods

### Rotate

```csharp
public void Rotate(double angle)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Double` | *angle* |  |

### RotateAt

```csharp
public void RotateAt(double angle, PointF center = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Double` | *angle* |  |
| [Aurigma.DesignAtoms.Model.Math.PointF](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/PointF.md) | *center* |  |

### Translate

```csharp
public void Translate(float translateX, float translateY)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Single` | *translateX* |  |
| `System.Single` | *translateY* |  |

### Scale

```csharp
public void Scale(float scaleX, float scaleY)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Single` | *scaleX* |  |
| `System.Single` | *scaleY* |  |

### Transform

```csharp
public void Transform(Transform transform, PointF center = null)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Math.Transform](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/Transform.md) | *transform* |  |
| [Aurigma.DesignAtoms.Model.Math.PointF](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/PointF.md) | *center* |  |

### AreEqual

```csharp
public static bool AreEqual(RotatedRectangleF rect1, RotatedRectangleF rect2, double tolerance = 0)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Math.RotatedRectangleF](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/RotatedRectangleF.md) | *rect1* |  |
| [Aurigma.DesignAtoms.Model.Math.RotatedRectangleF](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/RotatedRectangleF.md) | *rect2* |  |
| `System.Double` | *tolerance* |  |

##### Returns

`System.Boolean`

### Equals

```csharp
public override bool Equals(object obj)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Object` | *obj* |  |

##### Returns

`System.Boolean`

##### Overrides

* `System.Object.Equals(System.Object)`

### GetHashCode

```csharp
public override int GetHashCode()
```

##### Returns

`System.Int32`

##### Overrides

* `System.Object.GetHashCode`

### ToRectangleF

```csharp
public RectangleF ToRectangleF()
```

##### Returns

`System.Drawing.RectangleF`

### ToString

```csharp
public override string ToString()
```

##### Returns

`System.String`

##### Overrides

* `System.Object.ToString`

### Clone

```csharp
public RotatedRectangleF Clone()
```

##### Returns

[Aurigma.DesignAtoms.Model.Math.RotatedRectangleF](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/RotatedRectangleF.md)

### IntersectsWith

```csharp
public bool IntersectsWith(RotatedRectangleF rect)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Math.RotatedRectangleF](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/RotatedRectangleF.md) | *rect* |  |

##### Returns

`System.Boolean`

### Union

```csharp
public static RotatedRectangleF Union(RotatedRectangleF a, RotatedRectangleF b)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.Math.RotatedRectangleF](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/RotatedRectangleF.md) | *a* |  |
| [Aurigma.DesignAtoms.Model.Math.RotatedRectangleF](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/RotatedRectangleF.md) | *b* |  |

##### Returns

[Aurigma.DesignAtoms.Model.Math.RotatedRectangleF](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model.Math/RotatedRectangleF.md)
