Hexahedron:

Path: FormationFlying/Utility

% Compute the 5 points of a regular tetrahedron, the surface area and volume.
   Call with no outputs to see a picture in 3D.

   Since version 7.
--------------------------------------------------------------------------
   Usage:
   p = Hexahedron( d, eul )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   d           (1)  Length of each side  [length]
   eul        (1,3) Euler angles defining orientation

   -------
   Outputs
   -------
   p          (3,5)  [x;y;z] coordinates of the five corners
   
--------------------------------------------------------------------------

Children:

Common: Quaternion/QForm
Common: Transform/Eul2Q

Back to the FormationFlying Module page