Function to calculate the angle between two given vectors. Vector1 and vector2 are three-dimensional Euclidean vectors and should not be zero vector.
function angleBetweenTwoVectors input Real vector1[3] "vector1 (should not be zero)"; input Real vector2[3] "vector2 (should not be zero)"; output Real angle "angle between vector1 and vector2"; constant Real pi = Modelica.Constants.pi; end angleBetweenTwoVectors;