Table of Contents

Struct RectF

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

Representation of a floating-point rectangle.

public struct RectF
Inherited Members
Extension Methods

Constructors

RectF(float, float, float, float)

Initializes an instance of RectF.

public RectF(float x, float y, float width, float height)

Parameters

x float

The start x coordinate.

y float

The start y coordinate.

width float

The width.

height float

The height.

Properties

Height

Gets the rectangle height.

public float Height { get; set; }

Property Value

float

Width

Gets the rectangle width.

public float Width { get; set; }

Property Value

float

X

Gets the rectangle start coordinate in X direction.

public float X { get; set; }

Property Value

float

Y

Gets the rectangle start coordinate in Y direction.

public float Y { get; set; }

Property Value

float

Methods

Inflate(float, float)

Enlarges this RectF structure by the specified amount.

public void Inflate(float x, float y)

Parameters

x float

The amount to inflate this RectF structure horizontally.

y float

The amount to inflate this RectF structure vertically.