IDS peak ICV v1.5.0
Loading...
Searching...
No Matches
Point Class Reference
Inheritance diagram for Point:

Public Member Functions

 Point ()
 Initializes a new instance of the Point class with default coordinates (0, 0).
 
 Point (int x, int y)
 Initializes a new instance of the Point class with specified integer 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 integer coordinates.

Since
IDSImaging.Peak.Common 1.3

Constructor & Destructor Documentation

◆ Point() [1/2]

Point ( )
inline

Initializes a new instance of the Point class with default coordinates (0, 0).

◆ Point() [2/2]

Point ( int x,
int y )
inline

Initializes a new instance of the Point class with specified integer coordinates.

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

Member Function Documentation

◆ Equals()

override bool Equals ( object? obj)
inlineinherited

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.

◆ GetHashCode()

override int GetHashCode ( )
inlineinherited

Returns a hash code for the current point.

◆ ToString()

override string ToString ( )
inlineinherited

Converts the PointT<T> to a string representation.

Returns
A string representing of the point.

Property Documentation

◆ X

T X
getinherited

Gets the X coordinate of the point.

◆ Y

T Y
getinherited

Gets the Y coordinate of the point.