Cody

# Problem 567. Crossing to Kissing - Untangle the Lines

Solution 179819

Submitted on 19 Dec 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
%% L1 = [0 0; 2 2]; L2 = [0 1; 2 1]; [L3,L4] = cross2kiss(L1,L2); L3c = [0 0; 1 1; 2 1] L4c = [0 1; 1 1; 2 2] assert(isequal(L3,L3c)) assert(isequal(L4,L4c))

```Error: Output argument "L3" (and maybe others) not assigned during call to "/users/msssystem18/cross2kiss.m>cross2kiss". ```

2   Fail
%% L1 = [-2 -1; 2 1]; L2 = [-1 1; 1 -1]; [L3,L4] = cross2kiss(L1,L2); L3c = [-2 -1; 0 0; 1 -1]; L4c = [-1 1; 0 0; 2 1]; assert(isequal(L3,L3c)) assert(isequal(L4,L4c))

```Error: Output argument "L3" (and maybe others) not assigned during call to "/users/msssystem18/cross2kiss.m>cross2kiss". ```

3   Fail
%% L1 = [ 5 5; 8 -4]; L2 = [ 5 -2; 9 0]; [L3,L4] = cross2kiss(L1,L2); L3c = [ 5 -2; 7 -1; 8 -4]; L4c = [ 5 5; 7 -1; 9 0]; assert(isequal(L3,L3c)) assert(isequal(L4,L4c))

```Error: Output argument "L3" (and maybe others) not assigned during call to "/users/msssystem18/cross2kiss.m>cross2kiss". ```