callable
: something that can be called with params; like a function, method, procedure, macro...Point:
: 2d tuple/list/array or object/struct with coordinates (x, y) as attributes/fieldsRegion
: a callable that receive a point and returntrue
if is inside of a a region, andfalse
if is out.Distance
: a float
- We have a two tanks (in a two positions), and we want to know if we can shot to another positions without danger.
- The tanks have a secure region defined by a circle
- The tanks have a maximun shot distance.