AngledRectangleF

References
public readonly struct AngledRectangleF
An angled rectangle.

Constructors

AngledRectangleF

#
public AngledRectangleF(
line,
descender,
ascender
)

AngledRectangleF

#
public AngledRectangleF(
RectangleF
rectangle,
PointF
anchor,
angle
)

AngledRectangleF

#
public AngledRectangleF(
RectangleF
rectangle
)

Properties

A

#
public PointF A { get; }

Angle

#
Gets the angle (in degrees) of the midline.
public float Angle { get; }

B

#
public PointF B { get; }

C

#
public PointF C { get; }

Centre

#
Gets the centre point of this rectangle.
public PointF Centre { get; }

D

#
public PointF D { get; }

Height

#
Gets or sets the height of the frame.
public float Height { get; }

IsEmpty

#
Gets whether either the width or the height have zero length.
public bool IsEmpty { get; }

MidLine

#
Gets the midline of this rectangle. This line splits the height into two.
public LineF MidLine { get; }

Upright

#
Gets the upright version of this rectangle. That is, the version where the A point is on the left AND the bottom.
public AngledRectangleF Upright { get; }

Width

#
Gets or sets the width of the frame.
public float Width { get; }

Methods

Contains

#
Gets whether a point is inside this frame.
public bool Contains(
PointF
point
)

PointAt

#
Evaluate the frame at normalised parameters.
public PointF PointAt()

ToPath

#
Create a graphics path describing this frame.
public GraphicsPath ToPath()