6 kyu
Angle between two planes
84eqlion
Description:
Your task is to write a function angle_planes(lstPts)
that calculates the angle between two planes, each of them being defined by a tuple of three points.
Input:
lstPts – list of 6 tuples that contain 3 coordinates: x, y and z for each point. The first three points are defining the first plane, the second three are for the second one. All coordinates are integers.
Output:
A float: the angle between the two planes in radians and rounded off to 2 decimal places.
Example:
angle_planes([(2,1,2),(1,2,2),(2,2,0), (2,0,0),(2,0,2),(0,2,2)])
Should return
0.34
Geometry
Fundamentals
Algorithms
Similar Kata:
Stats:
Created | Sep 18, 2016 |
Published | Sep 20, 2016 |
Warriors Trained | 286 |
Total Skips | 0 |
Total Code Submissions | 508 |
Total Times Completed | 84 |
Python Completions | 84 |
Total Stars | 11 |
% of votes with a positive feedback rating | 91% of 38 |
Total "Very Satisfied" Votes | 32 |
Total "Somewhat Satisfied" Votes | 5 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 4 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |