public T Select <T, UT>(T aTrue, IConstVector3D <UT> aFalse) where T : IVector3D <UT>, new() { T r = new T(); r.x = mX ? aTrue.x : aFalse.x; r.y = mY ? aTrue.y : aFalse.y; r.z = mZ ? aTrue.z : aFalse.z; return(r); }
public void Select <T>(ref IVector3D <T> aOut, IConstVector3D <T> aTrue, IConstVector3D <T> aFalse) { aOut.x = mX ? aTrue.x : aFalse.x; aOut.y = mY ? aTrue.y : aFalse.y; aOut.z = mZ ? aTrue.z : aFalse.z; }