This usage is consistent with C++ practice, and it helps to distinguish between structures and ordinary variables.
Repetition is superfluous in use, as shown in the example.
Use Segment.length
Segment.length
Avoid Segment.segmentLength
Segment.segmentLength