From ec4b625d2d9b72ae3df1c2f46009b10ca4576192 Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Mon, 7 Aug 2023 10:03:26 +0300 Subject: [PATCH] Update item.go --- item.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/item.go b/item.go index c4d0981..0819a4a 100644 --- a/item.go +++ b/item.go @@ -65,6 +65,10 @@ func (i *Item) GetWeight() float64 { return i.weight } +func (i *Item) GetPosition() Pivot { + return i.position +} + //nolint:nonamedreturns func (i *Item) GetDimension() (d Dimension) { switch i.rotationType {