Table of Contents

Constructor Rect2f

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Rect2f(float, float, float, float)

A rectangle with float type coordinates in 2D space

public Rect2f(float X, float Y, float Width, float Height)

Parameters

X float

The x-coordinate of the upper-left corner of the rectangle.

Y float

The y-coordinate of the upper-left corner of the rectangle.

Width float

The width of the rectangle.

Height float

The height of the rectangle.

Rect2f(Point2f, Size2f)

Constructor

public Rect2f(Point2f location, Size2f size)

Parameters

location Point2f
size Size2f