Contact us

Applies to: Customer's Canvas On-Premises; Design Atoms .NET 7.4

Skip to main content

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.GetType
  • System.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​

TypeNameDescription
System.Doubleangle

RotateAt​

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

Parameters​

TypeNameDescription
System.Doubleangle
Aurigma.DesignAtoms.Model.Math.PointFcenter

Translate​

public void Translate(float translateX, float translateY)

Parameters​

TypeNameDescription
System.SingletranslateX
System.SingletranslateY

Scale​

public void Scale(float scaleX, float scaleY)

Parameters​

TypeNameDescription
System.SinglescaleX
System.SinglescaleY

Transform​

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

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Transformtransform
Aurigma.DesignAtoms.Model.Math.PointFcenter

AreEqual​

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

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.RotatedRectangleFrect1
Aurigma.DesignAtoms.Model.Math.RotatedRectangleFrect2
System.Doubletolerance

Returns​

System.Boolean

Equals​

public override bool Equals(object obj)

Parameters​

TypeNameDescription
System.Objectobj

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​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.RotatedRectangleFrect

Returns​

System.Boolean

Union​

public static RotatedRectangleF Union(RotatedRectangleF a, RotatedRectangleF b)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.RotatedRectangleFa
Aurigma.DesignAtoms.Model.Math.RotatedRectangleFb

Returns​

Aurigma.DesignAtoms.Model.Math.RotatedRectangleF

Was this page helpful?