Ejemplo n.º 1
0
        public (SplineDirection Direction, uint Point)? GetNextPoint(SplineTypeBase type, SplineDirection direction, uint point)
        {
            if (point == type.TopReverseIndex)
            {
                return(null);
            }

            return(direction, point - 1u);
        }
Ejemplo n.º 2
0
        public (SplineDirection Direction, uint Point)? GetNextPoint(SplineTypeBase type, SplineDirection direction, uint point)
        {
            if (point == type.TopIndex)
            {
                return(direction, type.BottomIndex);
            }

            return(direction, point + 1u);
        }
Ejemplo n.º 3
0
        public (SplineDirection Direction, uint Point)? GetNextPoint(SplineTypeBase type, SplineDirection direction, uint point)
        {
            if (direction == SplineDirection.Forward && point == type.TopIndex)
            {
                return(SplineDirection.Backward, type.BottomReverseIndex);
            }
            if (direction == SplineDirection.Backward && point == type.TopReverseIndex)
            {
                return(SplineDirection.Forward, type.BottomIndex);
            }

            return(direction, direction == SplineDirection.Forward ? point + 1 : point - 1);
        }