- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

For learning about the angle between two planes in 3D, we need to learn about planes and angles.

**Plane** is a two-dimensional surface that extends to infinity.

**Angle** is the space in degrees between two lines and surfaces which intersect at a point.

So, in this problem we need to find the *angle between two 3D planes*. For this we have two planes that intersect each other and we need to find the angle at which the are intersecting each other.

To calculate the angle between two **3D** planes, we need to calculate the angle between the normal's of these planes.

Here, we have two planes,

p1 : ax + by + cz + d = 0 p2 : hx + iy + j z + k = 0

The directions of the normal's of the planes p1 and p2 are (a,b,c) and (h,i,j).

Using this a mathematical formula that is created to find the angle between the normal's of these two planes is,

Cos Ø = {(a*h) + (b*i) + (c*j)} / [(a^{2}+ b^{2}+ c^{2})*(h^{2}+ i^{2}+ j^{2})]^{1/2}Ø = Cos^{-1}{ {(a*h) + (b*i) + (c*j)} / [(a^{2}+ b^{2}+ c^{2})*(h^{2}+ i^{2}+ j^{2})]^{1/2}}

#include <iostream> #include <math.h> using namespace std; int main() { float a = 2; float b = 2; float c = -1; float d = -5; float h = 3; float i = -3; float j = 5; float k = -3; float s = (a*h + b*i + c*j); float t = sqrt(a*a + b*b + c*c); float u = sqrt(h*h + i*i + j*j); s = s / (t * u); float pi = 3.14159; float A = (180 / pi) * (acos(s)); cout<<"Angle is "<<A<<" degree"; return 0; }

Angle is 104.724 degree

- Related Questions & Answers
- Angle between two Planes in 3D in C Program?
- Angle Between Hands of a Clock in C++
- Best way to plot an angle between two lines in Matplotlib
- Angle between a chord and a tangent when angle in the alternate segment is given in C++?
- Find other two sides of a right angle triangle in C++
- C program to calculate distance between three points in 3D
- Find other two sides and angles of a right angle triangle in C++
- Arc length from given Angle in C++?
- Difference Between 2D and 3D Shapes
- Program to find angle between hour and minute hands of a clock in C++?
- Calculate minutes between two dates in C#
- C# difference in milliseconds between two DateTime
- Step Angle in Stepper Motor
- Find a time for which angle between hour and minute hands is given theta in C++
- What are start angle and end angle of arc in HTML5 canvas?

Advertisements