.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-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos