Octagon Island

Topic:
Geometry
Move point M around the regular octagon and notice the different distances. Why do some (or all) of the lines and distances disappear when the point is moved to certain areas of the octagon? Click the checkbox to see the sum of all of the distances from point M to the sides. Use points A or B to change the size of the octagon. Also, find the height of the octagon and the length of its apothem.