55 return lhs.x == rhs.x && lhs.y == rhs.y;
69 return lhs.x != rhs.x || lhs.y != rhs.y;
83 return {lhs.x + rhs.x, lhs.y + rhs.y};
97 return {lhs.x - rhs.x, lhs.y - rhs.y};
111 return (out <<
"(" << vector.x <<
", " << vector.y <<
")");
Main SDK namespace.
Definition AlarmChannel.h:21
Vector2< int > Vector2i
Alias for a 2D vector with integer components.
Definition Vector.h:40
OTC_SDK_API std::ostream & operator<<(std::ostream &out, const AlarmChannelConfig &config) noexcept
Output stream operator for alarm channel configurations.
Vector2< T > operator-(const Vector2< T > &lhs, const Vector2< T > &rhs) noexcept
Subtracts two vectors.
Definition Vector.h:95
Vector2< float > Vector2f
Alias for a 2D vector with float components.
Definition Vector.h:38
Vector2< T > operator+(const Vector2< T > &lhs, const Vector2< T > &rhs) noexcept
Adds two vectors together.
Definition Vector.h:81
bool operator!=(const RadiationParameters &lhs, const RadiationParameters &rhs) noexcept
Checks if two radiation parameter sets are unequal.
bool operator==(const RadiationParameters &lhs, const RadiationParameters &rhs) noexcept
Checks if two radiation parameter sets are equal.
Generic 2D vector structure.
Definition Vector.h:26
T ComponentType
Type of the vector components.
Definition Vector.h:28
float x
Definition Vector.h:31
float y
Definition Vector.h:33