eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EMatrixPosition Struct Reference

Represents a position in a 2D Matrix. More...

#include <eVision/Easy/EMatrixPosition.h>

Public Member Functions

 EMatrixPosition ()
 Constructs a default EMatrixPosition object.
 EMatrixPosition (int x, int y)
 Constructs a default EMatrixPosition object.
bool operator== (const eVision::EMatrixPosition &position) const
 Checks if two EMatrixPosition are strictly equal.
bool operator!= (const eVision::EMatrixPosition &position) const
 Checks if two EMatrixPosition are strictly different.

Public Attributes

int X
 X position.
int Y
 Y position.

Detailed Description

Represents a position in a 2D Matrix.

License(s): BasicTypes

Constructor & Destructor Documentation

◆ EMatrixPosition() [1/2]

eVision::EMatrixPosition::EMatrixPosition ( )

Constructs a default EMatrixPosition object.

If the default constructor is used, the position is initialized to (0, 0).

◆ EMatrixPosition() [2/2]

eVision::EMatrixPosition::EMatrixPosition ( int x,
int y )

Constructs a default EMatrixPosition object.

Parameters
xX position.
yY position.

If the default constructor is used, the position is initialized to (0, 0).

Member Function Documentation

◆ operator!=()

bool eVision::EMatrixPosition::operator!= ( const eVision::EMatrixPosition & position) const

Checks if two EMatrixPosition are strictly different.

Parameters
positionThe other position.

◆ operator==()

bool eVision::EMatrixPosition::operator== ( const eVision::EMatrixPosition & position) const

Checks if two EMatrixPosition are strictly equal.

Parameters
positionThe other position.

Member Data Documentation

◆ X

int eVision::EMatrixPosition::X

X position.

◆ Y

int eVision::EMatrixPosition::Y

Y position.