rotate_ccw_about_centre¶
-
menpo.transform.
rotate_ccw_about_centre
(obj, theta, degrees=True)[source]¶ Return a Homogeneous Transform that implements rotating an object counter-clockwise about its centre. The given object must be transformable and must implement a method to provide the object centre.
- Parameters
obj (
Transformable
) – A transformable object that has thecentre
method.theta (float) – The angle of rotation clockwise about the origin.
degrees (bool, optional) – If
True
theta is interpreted as degrees. IfFalse
, theta is interpreted as radians.
- Returns
transform (
Homogeneous
) – A homogeneous transform that implements the rotation.