Struct Size2D

Inheritance Relationships

Base Type

Struct Documentation

struct Size2D : public NVCVSize2D

Public Functions

inline constexpr Size2D(int32_t w, int32_t h)
inline constexpr Size2D(const NVCVSize2D &s)
inline Size2D &operator=(const NVCVSize2D &s)
inline constexpr bool operator==(const Size2D &rhs) const

Compares two Size2D structures for equality.

Parameters:
  • a – First size to compare.

  • b – Second size to compare.

Returns:

true if both width and height of a and b are equal, otherwise false.

inline constexpr bool operator!=(const Size2D &rhs) const

Compares two Size2D structures for inequality.

Parameters:
  • a – First size to compare.

  • b – Second size to compare.

Returns:

true if width or height of a and b are not equal, otherwise false.

inline bool operator<(const nvcv::Size2D &rhs) const

Compares two Size2D structures.

The comparison is based on the width first, and then the height.

Parameters:
  • a – First size to compare.

  • b – Second size to compare.

Returns:

true if a is less than b, otherwise false.