IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
SizeT< T > Class Template Reference

Public Member Functions

 SizeT (T width, T height)
 Initializes a new instance of the SizeT<T> class with specified width and height.
 
SizeT< T > Transposed ()
 Returns a transposed size with width and height swapped.
 
override bool Equals (object? obj)
 Determines whether the specified object is equal to the current SizeT<T>.
 
override int GetHashCode ()
 Returns a hash code for the current size.
 
override string ToString ()
 Returns a string representation of the size.
 

Properties

T Width [get]
 Gets the width of the size.
 
T Height [get]
 Gets the height of the size.
 

Detailed Description

Represents a size with generic width and height values.

Template Parameters
TThe type of the width and height values (e.g., int, float).
Since
IDSImaging.Peak.Common 1.3

Definition at line 16 of file Size.cs.

Constructor & Destructor Documentation

◆ SizeT()

SizeT ( T width,
T height )
inline

Initializes a new instance of the SizeT<T> class with specified width and height.

Parameters
widthThe width of the size.
heightThe height of the size.

Definition at line 23 of file Size.cs.

Member Function Documentation

◆ Equals()

override bool Equals ( object? obj)
inline

Determines whether the specified object is equal to the current SizeT<T>.

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

Definition at line 49 of file Size.cs.

◆ GetHashCode()

override int GetHashCode ( )
inline

Returns a hash code for the current size.

Definition at line 82 of file Size.cs.

◆ ToString()

override string ToString ( )
inline

Returns a string representation of the size.

Returns
A string that represents the current size.

Definition at line 91 of file Size.cs.

◆ Transposed()

SizeT< T > Transposed ( )

Returns a transposed size with width and height swapped.

Property Documentation

◆ Height

T Height
get

Gets the height of the size.

Definition at line 42 of file Size.cs.

◆ Width

T Width
get

Gets the width of the size.

Definition at line 37 of file Size.cs.