Shear.from_angle_direction_plane
- classmethod Shear.from_angle_direction_plane(angle, direction, plane)
Construct a shear transformation from an angle, direction and plane.
- Parameters
- Returns
Shear
– The shear transformation object.- Raises
ValueError – If the shear direction does not lie in the shear plane.
Examples
>>> from compas.geometry import cross_vectors >>> angle = 0.1 >>> direction = [0.1, 0.2, 0.3] >>> point = [4, 3, 1] >>> normal = cross_vectors(direction, [1, 0.3, -0.1]) >>> S = Shear.from_angle_direction_plane(angle, direction, (point, normal))