Shear.from_angle_direction_plane
- classmethod Shear.from_angle_direction_plane(angle, direction, plane)
- Parameters
angle (
float
) – The angle in radians.direction (compas.geometry.Vector or
list
offloat
) – The direction vector as list of 3 numbers. It must be orthogonal to the normal vector (i.e. it must lie in the shear plane).plane (compas.geometry.Plane or (point, normal)) – The shear plane defined by a point and normal.
- Raises
ValueError – If the shear direction does not lie in the shear plane.
- Returns
Shear – The shear transformation object.
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))