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

Public Member Functions

 PointT (T x, T y)
 Initializes a new instance of the PointT<T> class with specified coordinates.
 
override bool Equals (object? obj)
 Determines whether the specified object is equal to the current PointT<T>.
 
override int GetHashCode ()
 Returns a hash code for the current point.
 
override string ToString ()
 Converts the PointT<T> to a string representation.
 

Properties

T X [get]
 Gets the X coordinate of the point.
 
T Y [get]
 Gets the Y coordinate of the point.
 

Detailed Description

Represents a 2D point with generic coordinates.

Template Parameters
TThe type of the coordinates (e.g., int, float).
Since
IDSImaging.Peak.Common 1.3

Definition at line 13 of file Point.cs.

Constructor & Destructor Documentation

◆ PointT()

PointT ( T x,
T y )
inline

Initializes a new instance of the PointT<T> class with specified coordinates.

Parameters
xThe X coordinate of the point.
yThe Y coordinate of the point.

Definition at line 20 of file Point.cs.

Member Function Documentation

◆ Equals()

override bool Equals ( object? obj)
inline

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

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

Definition at line 41 of file Point.cs.

◆ GetHashCode()

override int GetHashCode ( )
inline

Returns a hash code for the current point.

Definition at line 74 of file Point.cs.

◆ ToString()

override string ToString ( )
inline

Converts the PointT<T> to a string representation.

Returns
A string representing of the point.

Definition at line 83 of file Point.cs.

Property Documentation

◆ X

T X
get

Gets the X coordinate of the point.

Definition at line 29 of file Point.cs.

◆ Y

T Y
get

Gets the Y coordinate of the point.

Definition at line 34 of file Point.cs.