Cody

# Problem 42762. Is 3D point set Co-Planar?

Solution 845569

Submitted on 7 Mar 2016 by LY Cao
• Size: 15
• This is the leading solution.
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   Pass
m=[0 0 1;1 1 0;1 0 1;2 0 0]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

2   Pass
m=[0 0 1;1 1 0;1 0 1;2 1 2]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

3   Pass
m=[0 0 1;1 1 0;1 0 1;0 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

4   Pass
m=[0 0 1;1 1 0;1 0 1;2 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

5   Pass
m=[0 0 1;1 1 0;1 0 1;2 0 1]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

6   Pass
m=[2 0 0;1 2 0;2 1 1;2 2 2]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

7   Pass
m=[2 0 0;1 2 0;2 1 1;2 1 2]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

8   Pass
m=[0 0 0;1 0 0;0 1 0;0 0 1]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

9   Pass
m=[0 0 0;1 0 0;0 1 0;1 1 1]; y_correct = false; assert(isequal(iscoplanar(m),y_correct))

10   Pass
m=[0 0 0;1 0 0;0 1 0;1 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct))

11   Pass
m=[0 0 0;0 0 1;1 1 1;1 1 0]; y_correct = true; assert(isequal(iscoplanar(m),y_correct)) %0 0 0 %1 0 0 %0 1 0 %0 0 1 %1 1 1