scar
  • The scar game library
  • Application Structure
    • App
    • Scenes
    • Spaces
    • Entities
    • Components
    • Systems
    • Objects
    • Drawing
    • Events
  • Builtin Features
    • Actions
    • Assets
    • Config
    • Input
    • Logger
    • Music
    • Tweens
    • Util
    • Vectors & Rects
  • Builtin Components
    • Text
    • Sprite
    • Animated Sprite
  • Builtin Systems
    • Animate Sprites
Powered by GitBook
On this page

Was this helpful?

  1. Builtin Features

Vectors & Rects

PreviousUtilNextText

Last updated 5 years ago

Was this helpful?

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 .

The Scar::Rect class similarly is just a wrapper around SF::Rect.

reference