Table of Contents

Struct RectDouble

Namespace
PaintDotNet.Rendering
Assembly
PaintDotNet.Primitives.dll
[TypeConverter(typeof(ParsableTypeConverter<RectDouble>))]
[ValueSerializer(typeof(ParsableValueSerializer<RectDouble>))]
public struct RectDouble : IEquatable<RectDouble>, IFormattable, IParsable<RectDouble>
Implements
Inherited Members

Constructors

RectDouble(Point2Double, SizeDouble)
RectDouble(Point2Double, double, double)
RectDouble(double, double, SizeDouble)
RectDouble(double, double, double, double)

Properties

Area
Bottom
BottomLeft
BottomRight
BoxedZero
Center
HasArea
Height
Infinite
Int32Bound
Int64Bound
IsEmpty

Indicates whether the rectangle is the Empty rectangle or equivalent (negative width or negative height). Use HasArea to test whether the rectangle is non-empty and has a non-zero area.

IsFinite
IsInfinite
IsInteger
IsZero
Left
Location
Right
Size
Top
TopLeft
TopRight
Width
X
Y
Zero

Methods

Contains(Point2Double)
Contains(RectDouble)
Contains(double, double)
Equals(RectDouble)
Equals(object?)
FromCenter(Point2Double, SizeDouble)
FromCenter(Point2Double, double)
FromCenter(Point2Double, double, double)
FromCenter(double, double, double)
FromCenter(double, double, double, double)
FromCorners(Point2Double, Point2Double)
FromEdges(double, double, double, double)
GetFiniteInt32Bound(double)
GetFiniteInt64Bound(double)
GetHashCode()
GetInt32Bound(double)
GetInt64Bound(double)
Inflate(RectDouble, double, double)
Inflate(RectDouble, double, double, double, double)
Inflate(double, double)
Intersect(RectDouble)
Intersect(RectDouble, RectDouble)
IntersectsWith(RectDouble)
Offset(Point2Double)
Offset(RectDouble, Point2Double)
Offset(RectDouble, Vector2Double)
Offset(RectDouble, double, double)
Offset(double, double)
Parse(string)
Scale(RectDouble, double)
Scale(RectDouble, double, double)
Scale(double, double)
ToString()
ToString(IFormatProvider?)
ToString(string?, IFormatProvider?)
TryParse(string?, out RectDouble)
Union(RectDouble)
Union(RectDouble, RectDouble)

Operators

operator ==(RectDouble, RectDouble)
explicit operator RectangleF(RectDouble)
implicit operator Rect(RectDouble)
implicit operator RectDouble(RectFloat)
implicit operator RectDouble(RectInt32)
implicit operator RectDouble(RectInt64)
implicit operator RectDouble(Rectangle)
implicit operator RectDouble(RectangleF)
implicit operator RectDouble(Rect)
operator !=(RectDouble, RectDouble)

Explicit Interface Implementations

Empty

Gets a special value that represents a rectangle with no position or area.

Parse(string, IFormatProvider?)
TryParse(string?, IFormatProvider?, out RectDouble)