Table of Contents

Struct PdfRect

Namespace
PdfEngine.Geometry
Assembly
PdfEngine.Abstractions.dll

Represents a normalized bounding rectangle [0.0, 1.0] or physical point bounds.

public readonly record struct PdfRect : IEquatable<PdfRect>
Implements
Inherited Members

Constructors

PdfRect(double, double, double, double)

Represents a normalized bounding rectangle [0.0, 1.0] or physical point bounds.

public PdfRect(double X, double Y, double Width, double Height)

Parameters

X double
Y double
Width double
Height double

Fields

Empty

public static readonly PdfRect Empty

Field Value

PdfRect

Properties

Bottom

public double Bottom { get; }

Property Value

double

Height

public double Height { get; init; }

Property Value

double

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Left

public double Left { get; }

Property Value

double

Right

public double Right { get; }

Property Value

double

Top

public double Top { get; }

Property Value

double

Width

public double Width { get; init; }

Property Value

double

X

public double X { get; init; }

Property Value

double

Y

public double Y { get; init; }

Property Value

double

Methods

Contains(PdfPoint)

public bool Contains(PdfPoint point)

Parameters

point PdfPoint

Returns

bool

Contains(double, double)

public bool Contains(double px, double py)

Parameters

px double
py double

Returns

bool

IntersectsWith(PdfRect)

public bool IntersectsWith(PdfRect rect)

Parameters

rect PdfRect

Returns

bool