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
xTThe start x coordinate.
yTThe start y coordinate.
widthTThe width.
heightTThe 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
xTThe amount to inflate this Rect structure horizontally.
yTThe amount to inflate this Rect structure vertically.