bladex.blade.Blade.rotate

Blade.rotate(deg_angle=None, rad_angle=None)[source]

3D counter clockwise rotation about the X-axis of the Cartesian coordinate system, which is the axis of rotation of the propeller hub.

The rotation matrix, R(\theta), is used to perform rotation in the 3D Euclidean space about the X-axis, which is – by default – the propeller axis of rotation.

R(\theta) is defined by:

\left(\begin{matrix} 1 & 0 & 0 \\
0 & cos (\theta) & - sin (\theta) \\
0 & sin (\theta) & cos (\theta) \end{matrix}\right)

Given the coordinates of point P such that

P = \left(\begin{matrix} x \\
y \\ z \end{matrix}\right),

Then, the rotated coordinates will be:

P^{'} = \left(\begin{matrix} x^{'} \\
         y^{'} \\ z^{'} \end{matrix}\right)
      = R (\theta) \cdot P

Parameters:
  • deg_angle (float) – angle in degrees. Default value is None
  • rad_angle (float) – angle in radians. Default value is None
Raises:

ValueError – if both rad_angle and deg_angle are inserted, or if neither is inserted