public static void Render(RenderManager.CameraInfo cameraInfo, DistanceMeasurement distance)
        {
            var renderManager = RenderManager.instance;

            if (!distance.IsStraight || distance.HideOverlay)
                return;

            var minHeight = Mathf.Min(distance.StartPosition.y, distance.EndPosition.y);
            var maxHeight = Mathf.Max(distance.StartPosition.y, distance.EndPosition.y);

            renderManager.OverlayEffect.DrawSegment(cameraInfo,
                distance.Flags == MeasurementFlags.Primary ? Settings.PrimaryColor : Settings.SecondaryColor,
                new Segment3(distance.StartPosition, distance.EndPosition), Size, 3f,
                minHeight - 20f,
                maxHeight + 20f, true, true);
        }
 public static Vector3 GetLabelWorldPosition(DistanceMeasurement distance)
 {
     return distance.Position;
 }