Just a silly question, got a bit confused. Can a period of a sinusoidal function be the horizontal distance between any two points that enclose a cycle (period)?

The definition, as I've seen, a period of a function is the distance between two sucessive high points or low points on its graph; but in the example they've also shown it as the distance between two points (skipping one) where the graph intercepts the mean line.