Table of Contents

Struct Rect<T>

Namespace
FellowOakDicom.Imaging.Mathematics
Assembly
fo-dicom.core.dll

Representation of a floating-point rectangle.

public struct Rect<T> where T : INumber<T>

Type Parameters

T
Inherited Members
Extension Methods

Constructors

Rect(T, T, T, T)

Initializes an instance of Rect.

public Rect(T x, T y, T width, T height)

Parameters

x T

The start x coordinate.

y T

The start y coordinate.

width T

The width.

height T

The height.

Properties

Height

Gets the rectangle height.

public T Height { readonly get; set; }

Property Value

T

Width

Gets the rectangle width.

public T Width { readonly get; set; }

Property Value

T

X

Gets the rectangle start coordinate in X direction.

public T X { readonly get; set; }

Property Value

T

Y

Gets the rectangle start coordinate in Y direction.

public T Y { readonly get; set; }

Property Value

T

Methods

Inflate(T, T)

Enlarges this RectF structure by the specified amount.

public void Inflate(T x, T y)

Parameters

x T

The amount to inflate this Rect structure horizontally.

y T

The amount to inflate this Rect structure vertically.