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); }
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; }