Vector2I
Generated from engine/math/vector2i.h at 862e08b. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.
#include "engine/math/vector2i.h" · namespace mattmath
struct Vector2I
Section titled “struct Vector2I”int x = 0;int y = 0;Vector2I
Section titled “Vector2I”Vector2I(const Vector2I&) = default;Vector2I
Section titled “Vector2I”constexpr and defined here so ZERO is constant-initialised. See Vector2F's constants for what the dynamic alternative risks.
operator== · operator!=
Section titled “operator== · operator!=”bool operator!=(const Vector2I& other) const;operator+= · operator-= · operator*= · operator/=
Section titled “operator+= · operator-= · operator*= · operator/=”Vector2I& operator-=(const Vector2I& other);Vector2I& operator*=(const Vector2I& other);Vector2I& operator/=(const Vector2I& other);Vector2I& operator*=(int other);Vector2I& operator/=(int other);offset · scale · set
Section titled “offset · scale · set”void offset(int horizontal_amount, int vertical_amount);void scale(int horizontal_amount, int vertical_amount);void set(int x, int y);operator+ · operator- · operator* · operator/
Section titled “operator+ · operator- · operator* · operator/”Vector2I operator- (const Vector2I& V1, const Vector2I& V2);Vector2I operator* (const Vector2I& V1, const Vector2I& V2);Vector2I operator* (const Vector2I& V, int S);Vector2I operator/ (const Vector2I& V1, const Vector2I& V2);Vector2I operator/ (const Vector2I& V, int S);Vector2I operator* (int S, const Vector2I& V);Related types
Section titled “Related types”Named in the public declarations above: Vector2F.
In the samples and tests
Section titled “In the samples and tests”The files that include this header directly. A file can also reach it through another header.
tests/input/mouse_tests.cpptests/math/constant_initialisation_tests.cpptests/render/resolution_manager_tests.cpp,viewport_manager_tests.cpp
Development documentation (unreleased). Built from Labrador 862e08b of 2026-10-08.