Пример #1
0
        public T Select <T, UT>(T aTrue, IConstVector2D <UT> aFalse) where T : IVector2D <UT>, new()
        {
            T r = new T();

            r.x = mX ? aTrue.x : aFalse.x;
            r.y = mY ? aTrue.y : aFalse.y;
            return(r);
        }
Пример #2
0
 public void Select <T>(ref IVector2D <T> aOut, IConstVector2D <T> aTrue, IConstVector2D <T> aFalse)
 {
     aOut.x = mX ? aTrue.x : aFalse.x;
     aOut.y = mY ? aTrue.y : aFalse.y;
 }