missing shape modes in a couple more places

This commit is contained in:
Kartik K. Agaram 2022-05-30 16:22:35 -07:00
parent b22bfe82db
commit 69eeefe197
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ function Drawing.contains_point(shape, p)
-- not supported
elseif shape.mode == 'line' or shape.mode == 'manhattan' then
return shape.p1 == p or shape.p2 == p
elseif shape.mode == 'polygon' then
elseif shape.mode == 'polygon' or shape.mode == 'rectangle' or shape.mode == 'square' then
return table.find(shape.vertices, p)
elseif shape.mode == 'circle' then
return shape.center == p