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 and vector or
compas.geometry.Plane
) – The first plane.b (point and vector or
compas.geometry.Plane
) – The second plane.deg (boolean) – Returns angle in degrees if True.
- Returns
float – The smallest angle in radians (in degrees if deg == True). The angle is always positive.
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