Outlines rewrite theoretically done

This commit is contained in:
Bán Dénes 2022-01-11 22:40:09 +01:00
parent df7b76c610
commit 4844a044df
3 changed files with 36 additions and 24 deletions

View file

@ -58,6 +58,10 @@ module.exports = class Point {
return m.model.moveRelative(m.model.rotate(model, this.r), this.p)
}
unposition(model) {
return m.model.rotate(m.model.moveRelative(model, [-this.x, -this.y]), -this.r)
}
rect(size=14) {
let rect = u.rect(size, size, [-size/2, -size/2])
return this.position(rect)