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