RCAIDE.Library.Methods.Aerodynamics.Vortex_Lattice_Method.deflect_control_surface.rotate_points_with_quaternion#

rotate_points_with_quaternion(quat, points)[source]#

This rotates the points by a quaternion

Assumptions: None

Source: https://sites.google.com/site/glennmurray/Home/rotation-matrices-and-formulas/rotation-about-an-arbitrary-axis-in-3-dimensions

Inputs: quat - a quaternion that will rotate the given points about a line which

is not necessarily at the origin

points - a list or array of size 3 corresponding to the lists (xs, ys, zs)

where xs, ys, and zs are the (x,y,z) coords of the points that will be rotated

Outputs: xs, ys, zs - np arrays of the rotated points’ xyz coordinates

Properties Used: N/A