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)); } }
public PositionValue(PositionKeyword relative) : this(relative, 0) { }
public PositionValue(PositionKeyword relative, double offset) : this(relative.ToRelative(), offset) { }