We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Sherlock and Planes
Sherlock and Planes
Sort by
recency
|
35 Discussions
|
Please Login in order to post a comment
A problem like this leads to an interesting variety of solutions.
The most obvious approach would be to substitute 3 of these points into the general equation of a plane (
ax + by + cz + d = 0
) and see if the 4th point satisfies this equation.This would require a fair bit of matrix work so instead, I chose 3 different pairs of points and made vectors out of them then calculated the cross product out of two different pairs of these vectors. If all points are in the same plane then the two cross products should be scalar multiples of each other.
Do you know any sherlock who can get best consultancy in dubai for canada that suitable for students.
python3
def solve(points):