Here's a more detailed explanation:
Boundary Edge:
The boundary edge is the defining line separating the course from out of bounds.
Out of Bounds Definition:
A ball is out of bounds when it is entirely outside this boundary edge.
Impact of Stakes and Lines:
White stakes or lines are commonly used to mark the boundary, but other methods like fences or walls can also define the out of bounds area.
Touching the Edge:
If any part of the ball is touching the course-side edge of the boundary line or stake, it's considered in bounds.
Penalty:
If a ball is out of bounds, the player must take a one-stroke penalty and replay the shot from the original spot, according to the rules of stroke and distance (Rule 14.6).