.Modelica.Mechanics.MultiBody.Frames.axis

Information

Syntax

e = Frames.axis(axis);

Description

A unit vector e is returned depending on whether x-, y-, or z-axis is required.

 axis  |    e
-------+-----------
  1    |  {1,0,0}
  2    |  {1,0,0}
  3    |  {1,0,0}

Interface

function axis
  extends Modelica.Icons.Function;
  input Integer axis(min = 1, max = 3) "Axis vector to be returned";
  output Real e[3](each final unit = "1") "Unit axis vector";
end axis;

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos