View source: R/setup_muscles.r
distribute_MUs_in_muscle | R Documentation |
Distribute MUs throughout the base muscle's assigned area, taking care of assumed fiber densities, muscle boundaries, etc. This is a purely technical function; the algorithm used for MU placement must be provided externally via 'muscle$MU_distributor'.
distribute_MUs_in_muscle(muscle, MUs)
muscle |
A single muscle object, must have element 'MU_distributor'. |
MUs |
A list of MU objects. |
Returned objects have one very important property: $transform, which transforms coordinates relative to the MU base region (a (0,1)x(0,1) square) into coordinates relative to the muscle's base region (also a [0,1]x[0,1] square). It is a function that takes 2D vectors with values between 0 and 1 in both dimensions. The same is true for its return values.
A list of modified MU objects with assigned geometrical properties.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.