6 kyu
Points are collinear in 3D
83zefr0x
Description:
Write a function that accepts a list of at least three points in 3D and returns a boolean value that tells whether the points are collinear or not.
From Wikipedia: In geometry, collinearity of a set of points is the property of their lying on a single line. A set of points with this property is said to be collinear (sometimes spelled as colinear). In greater generality, the term has been used for aligned objects, that is, things being "in a line" or "in a row".
Data types
The points that you will get are using the Point3d
data type which consists of a tuple with three floats:
(x, y, z)
Note:
- Don't expect getting one or two or none points in the input, all the inputs contain three points at least.
- Some inputs might contain one or more duplicated points.
Geometry
Mathematics
Algorithms
Similar Kata:
Stats:
Created | Apr 15, 2022 |
Published | Apr 15, 2022 |
Warriors Trained | 447 |
Total Skips | 7 |
Total Code Submissions | 1106 |
Total Times Completed | 83 |
Python Completions | 83 |
Total Stars | 8 |
% of votes with a positive feedback rating | 83% of 27 |
Total "Very Satisfied" Votes | 20 |
Total "Somewhat Satisfied" Votes | 5 |
Total "Not Satisfied" Votes | 2 |
Total Rank Assessments | 14 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |