Added clipWith member function