Esempio n. 1
0
 public float efficiency()
 {
     return(CScommon.efficiency(source.distance2(target), source.radius2));
 }
Esempio n. 2
0
        //the oomph that this particular muscle can actually put to work (some is wasted in inefficiency)
        // units: is oomp is d*b

        public float strength()
        {
            return(demand * CScommon.efficiency(length2(), source.radius2));
        }
Esempio n. 3
0
 // the efficiency of a link between the two nodes.
 // public, and not a link method, so that bots can determine which potential muscles would be most efficient
 // This is independent of metabolicOutput--the node's ability to supply the link with oomph.
 // It is wholly a function of link length AND the source's radius--so linkEfficiency is NOT symmetric
 public static float linkEfficiency(Node source, Node target)
 {
     return(CScommon.efficiency(distance2(source, target), source.radius2));
 }