Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
Hamolicious edited this page Apr 21, 2021 · 1 revision

Both vector objects have method overloading

>>>Vec2d() + 10
vector X: 10, Y: 10

>>>Vec2d(5, 2) * 10
vector X: 50, Y: 20

>>>Vec2d(10, 5) / [2, 5]
vector X: 5, Y: 1

>>>v = Vec2d(10, 5)
>>>v *= 0.1
vector X: 1, Y: 0.5
Clone this wiki locally