Beispiel #1
0
        public static StationSegment ToStationSegment(this ProfileEntity entity)
        {
            double      start = entity.StartStation;
            double      end   = entity.EndStation;
            SegmentType type  = (entity.EntityType == ProfileEntityType.Tangent) ?
                                SegmentType.straight :
                                SegmentType.nonstraight;

            return(new StationSegment(start, end, type));
        }
Beispiel #2
0
        public static StationSegment ToStationSegment(this AlignmentSubEntity subEntity)
        {
            double      start = subEntity.StartStation;
            double      end   = subEntity.EndStation;
            SegmentType type  = (subEntity.SubEntityType == AlignmentSubEntityType.Line) ?
                                SegmentType.straight :
                                SegmentType.nonstraight;

            return(new StationSegment(start, end, type));
        }