void setStartPoint ( StandardRoadConnection desiredConnection ) { final StandardRoadConnection oldPoint = getBeginPoint ( StandardRoadConnection . class ) ; if ( oldPoint != null ) { oldPoint . removeConnectedSegment ( this , true ) ; } this . firstConnection = desiredConnection ; if ( desiredConnection != null ) { final Point2d pts = desiredConnection . getPoint ( ) ; if ( pts != null ) { setPointAt ( 0 , pts , true ) ; } desiredConnection . addConnectedSegment ( this , true ) ; } }
Move the start point of a road segment .