|
| | 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.
|
| |
|
| T | Width [get] |
| | Gets the width of the size.
|
| |
| T | Height [get] |
| | Gets the height of the size.
|
| |
Represents a size with generic width and height values.
- Template Parameters
-
| T | The type of the width and height values (e.g., int, float). |
- Since
- IDSImaging.Peak.Common 1.3
◆ SizeT()
| SizeT |
( |
T | width, |
|
|
T | height ) |
|
inline |
Initializes a new instance of the SizeT<T> class with specified width and height.
- Parameters
-
| width | The width of the size. |
| height | The height of the size. |
◆ Equals()
| override bool Equals |
( |
object? | obj | ) |
|
|
inline |
Determines whether the specified object is equal to the current SizeT<T>.
- Parameters
-
| obj | The object to compare with the current size. |
- Returns
true if the objects are equal; otherwise, false.
◆ GetHashCode()
| override int GetHashCode |
( |
| ) |
|
|
inline |
Returns a hash code for the current size.
◆ ToString()
| override string ToString |
( |
| ) |
|
|
inline |
Returns a string representation of the size.
- Returns
- A string that represents the current size.
◆ Transposed()
| SizeT< T > Transposed |
( |
| ) |
|
Returns a transposed size with width and height swapped.
◆ Height
Gets the height of the size.
◆ Width
Gets the width of the size.