Esempio n. 1
0
        public static Relative ToRelative(this PositionKeyword k)
        {
            switch ((int)k)
            {
            case 0:
                return(new Relative(0));

            case 1:
                return(new Relative(1));

            case 2:
                return(new Relative(0.5));

            default:
                return(new Relative(0));
            }
        }
Esempio n. 2
0
 public PositionValue(PositionKeyword relative) : this(relative, 0)
 {
 }
Esempio n. 3
0
 public PositionValue(PositionKeyword relative, double offset) : this(relative.ToRelative(), offset)
 {
 }