I've got below code written
Public Function FillZoneDetails() As Zones
Dim z As New Zones()
.ZoneStartPoint = 0
.ZoneEndPoint = _Settings.MaxVelocity * (_Settings.SpeedZone1 / 100) * 1
.ZoneStartPoint = Zone1.ZoneEndPoint
.ZoneEndPoint = _Settings.MaxVelocity * (_Settings.SpeedZone2 / 100) * 1
....... 'up until zone5
basically, I'll have a list of different zones and their details will be calculated based on different factor, but I can tell by the stuff I have this function is going to be massive once all zones are filled.
I'm wondering, is there a smarter way of constructing this object? or shall I change the structure of the zone class somehow?