file: Vec2.aus

class: Vec2

[18:7] extends: Poolable

Wraps FXGL's Vec2 (com.almasb.fxgl.core.math.Vec2), the libgdx-derived 2D float vector used throughout the FXGL physics, particle, and entity APIs. Aussom users mostly encounter Vec2 as the parameter or return type of Entity.setPosition, Entity.translate, World.getBodies positions, HitBox axes, and PhysicsUnitConverter helpers. Methods that mutate (set, add, sub, mul, normalize) follow the FXGL convention of returning this so calls chain.

Methods