Class RotatedRectangleF
Namespace: Aurigma.DesignAtoms.Model.Math
Assembly: Aurigma.DesignAtoms.Model.dll
Syntax
public class RotatedRectangleF
Inheritance: System.Object -> RotatedRectangleF
Inherited Members
System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetTypeSystem.Object.MemberwiseClone
Constructors
RotatedRectangleF
public RotatedRectangleF()
RotatedRectangleF
public RotatedRectangleF(float centerX, float centerY, float width, float height, float angle = 0F)
RotatedRectangleF
public RotatedRectangleF(RectangleF rect, float angle = 0F)
Properties
Bounds
public RectangleF Bounds { get; }
Center
public PointF Center { get; set; }
CenterX
public float CenterX { get; set; }
CenterY
public float CenterY { get; set; }
Width
public float Width { get; set; }
Height
public float Height { get; set; }
Angle
public float Angle { get; set; }
Location
public PointF Location { get; set; }
IsEmpty
public bool IsEmpty { get; }
Methods
Rotate
public void Rotate(double angle)
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | angle |
RotateAt
public void RotateAt(double angle, PointF center = null)
Parameters
| Type | Name | Description |
|---|---|---|
System.Double | angle | |
| Aurigma.DesignAtoms.Model.Math.PointF | center |
Translate
public void Translate(float translateX, float translateY)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | translateX | |
System.Single | translateY |
Scale
public void Scale(float scaleX, float scaleY)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | scaleX | |
System.Single | scaleY |
Transform
public void Transform(Transform transform, PointF center = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Transform | transform | |
| Aurigma.DesignAtoms.Model.Math.PointF | center |
AreEqual
public static bool AreEqual(RotatedRectangleF rect1, RotatedRectangleF rect2, double tolerance = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.RotatedRectangleF | rect1 | |
| Aurigma.DesignAtoms.Model.Math.RotatedRectangleF | rect2 | |
System.Double | tolerance |
Returns
System.Boolean
Equals
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
System.Object | obj |
Returns
System.Boolean
Overrides
System.Object.Equals(System.Object)
GetHashCode
public override int GetHashCode()
Returns
System.Int32
Overrides
System.Object.GetHashCode
ToRectangleF
public RectangleF ToRectangleF()
Returns
System.Drawing.RectangleF
ToString
public override string ToString()
Returns
System.String
Overrides
System.Object.ToString
Clone
public RotatedRectangleF Clone()
Returns
Aurigma.DesignAtoms.Model.Math.RotatedRectangleF
IntersectsWith
public bool IntersectsWith(RotatedRectangleF rect)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.RotatedRectangleF | rect |
Returns
System.Boolean
Union
public static RotatedRectangleF Union(RotatedRectangleF a, RotatedRectangleF b)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.RotatedRectangleF | a | |
| Aurigma.DesignAtoms.Model.Math.RotatedRectangleF | b |