Vector2I
Generated from engine/math/vector2i.h at 0f4f503. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.
Audience: game code.
#include "engine/math/vector2i.h" · namespace labrador
struct Vector2I
Section titled “struct Vector2I”int x = 0;int y = 0;Vector2I · operator=
Section titled “Vector2I · operator=”Vector2I(const Vector2I&) = default;Vector2I& operator=(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.
samples/linesweeper/presentation/touch_controls.htests/app/application_resize_tests.cpptests/input/mouse_tests.cpp,touch_tests.cpptests/linesweeper/touch_controls_tests.cpptests/math/constant_initialisation_tests.cpptests/render/camera_tests.cpp,resolution_manager_tests.cpp,viewport_manager_tests.cpp
Explained in
Section titled “Explained in”No guide or concept page links to this header yet.
Documentation for Labrador v0.3.0. Built from Labrador 0f4f503 of 2026-11-03.