Exemple #1
0
 public VectorI2 GetBetween(VectorI2 a, VectorI2 b)
 {
     return(new VectorI2(
                source.GetBetween(a.x, b.x),
                source.GetBetween(a.y, b.y)
                ));
 }
Exemple #2
0
 static public float GetBetween(float a, float b)
 {
     return(SOURCE.GetBetween(a, b));
 }
Exemple #3
0
        static public T PickRandom <T>(this IList <T> item, Operation <double, T> operation, RandFloatSource source)
        {
            double total_cost = item.GetCost(operation);

            return(item.GetElementForCost(source.GetBetween(0.0f, (float)total_cost), BoundType.Below, operation));
        }