angle_planes

compas.geometry.angle_planes(a, b, deg=False)[source]

Compute the smallest angle between the two normal vectors of two planes.

Parameters:
a[point, vector] | compas.geometry.Plane

The first plane.

b[point, vector] | compas.geometry.Plane

The second plane.

degbool, optional

If True, returns the angle in degrees.

Returns:
float

The smallest angle in radians, or in degrees if deg == True.

float

The other angle.

Examples

>>> plane_a = [0.0, 0.0, 0.0], [0.0, 0.0, 1.0]
>>> plane_b = [0.0, 0.0, 0.0], [1.0, 0.0, 0.0]
>>> angle_planes(plane_a, plane_b, True)
90.0