Each of start_pos and end_pos will always only have two values, x and y. However, we want to replace this with a point class such that our new format is as follows
start_pos: point
end_pos: point
However, before we make this change, we need to determine what could be the benefits of using this structure.
List them out here and discuss if this change needs to happen or not.
Currently we work with pixels in images like so:
Each of
start_pos
andend_pos
will always only have two values,x
andy
. However, we want to replace this with apoint
class such that our new format is as followsHowever, before we make this change, we need to determine what could be the benefits of using this structure. List them out here and discuss if this change needs to happen or not.