how do you calculate the lengths of the midsegment

what "midsegment" ?

Do you have the coordinates ?

more information needed.