IDS peak ICV v1.4.0
Loading...
Searching...
No Matches
RectangleF Class Reference
Inheritance diagram for RectangleF:

Public Member Functions

 RectangleF ()
 Initializes a new instance of the RectangleF class with default values (0.0f, 0.0f, 0.0f, 0.0f).
 
 RectangleF (float x, float y, float width, float height)
 Initializes a new instance of the RectangleF class with specified floating-point coordinates and dimensions.
 
 RectangleF (PointF point, SizeF size)
 Initializes a new instance of the RectangleF class with location and size.
 
override bool Equals (object? obj)
 Determines whether the specified object is equal to the current RectangleT<TPosition,TSize>.
 
override int GetHashCode ()
 Returns a hash code for the current point.
 
override string ToString ()
 Returns a string representation of the rectangle.
 

Properties

TPosition X [get]
 Gets or sets the X coordinate of the top-left corner of the rectangle.
 
TPosition Y [get]
 Gets the Y coordinate of the top-left corner of the rectangle.
 
TSize Width [get]
 Gets the width of the rectangle.
 
TSize Height [get]
 Gets the height of the rectangle.
 
PointT< TPosition > Position [get]
 Gets the position of the rectangle.
 
SizeT< TSize > Size [get]
 Gets the size of the rectangle.
 

Detailed Description

Represents a rectangle with floating-point coordinates and dimensions.

Since
IDSImaging.Peak.Common 1.3

Constructor & Destructor Documentation

◆ RectangleF() [1/3]

RectangleF ( )
inline

Initializes a new instance of the RectangleF class with default values (0.0f, 0.0f, 0.0f, 0.0f).

◆ RectangleF() [2/3]

RectangleF ( float x,
float y,
float width,
float height )
inline

Initializes a new instance of the RectangleF class with specified floating-point coordinates and dimensions.

Parameters
xThe X coordinate of the top-left corner of the rectangle.
yThe Y coordinate of the top-left corner of the rectangle.
widthThe width of the rectangle.
heightThe height of the rectangle.

◆ RectangleF() [3/3]

RectangleF ( PointF point,
SizeF size )
inline

Initializes a new instance of the RectangleF class with location and size.

Parameters
pointThe top-left corner of the rectangle
sizeThe size of the rectangle

Member Function Documentation

◆ Equals()

override bool Equals ( object? obj)
inlineinherited

Determines whether the specified object is equal to the current RectangleT<TPosition,TSize>.

Parameters
objThe object to compare with the current rectangle.
Returns
true if the objects are equal; otherwise, false.

◆ GetHashCode()

override int GetHashCode ( )
inlineinherited

Returns a hash code for the current point.

◆ ToString()

override string ToString ( )
inlineinherited

Returns a string representation of the rectangle.

Returns
A string that represents the current rectangle.

Property Documentation

◆ Height

TSize Height
getinherited

Gets the height of the rectangle.

◆ Position

PointT<TPosition> Position
getinherited

Gets the position of the rectangle.

◆ Size

SizeT<TSize> Size
getinherited

Gets the size of the rectangle.

◆ Width

TSize Width
getinherited

Gets the width of the rectangle.

◆ X

TPosition X
getinherited

Gets or sets the X coordinate of the top-left corner of the rectangle.

◆ Y

TPosition Y
getinherited

Gets the Y coordinate of the top-left corner of the rectangle.