The starting pixel position.
The ending pixel position.
The length of the hit.
The starting position of the domain.
The ending position of the domain.
The width of the margin.
An array containing the start and end pixel coordinates for the domain.
Calculates the pixel coordinates for a domain region.