.IdealizedContact.Components.VectorCalculations.cosineRules

Information

Using the cosine rules, the length c of the side of a triangle is calculated. The two sides a and b and the angle beta between them are given.

Interface

function cosineRules
  input Real a "length of side a of a triangle";
  input Real b "length of side b of a triangle";
  input Real beta "angle between side a and side b";
  output Real c "length of side c of a triangle";
  constant Real pi = Modelica.Constants.pi;
end cosineRules;

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos