> For the complete documentation index, see [llms.txt](https://vypxl.gitbook.io/scar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vypxl.gitbook.io/scar/builtin-features/vectors.md).

# Vectors & Rects

The `Scar::Vec` class is a full-blown vector class with many mathematical functions. It can be initialized with x and y values. It is actually just an extended `SF::Vector2`, so you can use the two names interchangeably. All methods are listed in the [reference](https://vypxl.github.io/scar/Scar/Vec.html).

The `Scar::Rect` class similarly is just a wrapper around `SF::Rect`.&#x20;
