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

make_hinge_quaternion(point_on_line, direction_unit_vector, rotation_angle)[source]#

This make a quaternion that will rotate a vector about a the line that passes through the point ‘point_on_line’ and has direction ‘direction_unit_vector’. The quat rotates ‘rotation_angle’ radians. The quat is meant to be multiplied by the vector [x y z 1]

Assumptions: None

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

Inputs: point_on_line - a list or array of size 3 corresponding to point coords (a,b,c) direction_unit_vector - a list or array of size 3 corresponding to unit vector <u,v,w> rotation_angle - angle of rotation in radians n_points - number of points that will be rotated

Properties Used: N/A