예제 #1
0
 public double SellingValue(double[] stocks)
 {
     return(VectorOp.sumproduct(stocks, BidPrices));
 }
예제 #2
0
 public void DotGenericVector()
 {
     VectorOp.Dot(x, y);
 }
예제 #3
0
 public double StocksValue(double[] stocks)
 {
     return(VectorOp.sumproduct(stocks, AvgPrices));
 }
예제 #4
0
 /// <summary>
 /// Creates a custom EffectParameter that sets a dynamic vector value in the shader.
 /// </summary>
 /// <param name="varName">The variable name used in the shader.</param>
 /// <param name="effect">A reference to the effect instance.</param>
 /// <param name="vectorOp">The vector value to set.</param>
 /// <returns>An istance of EffectParameter containg all the needed information
 /// to correctly set and update this value into the shader.</returns>
 public static SharedParameter CreateCustom(String varName, Effect effect, VectorOp vectorOp)
 {
     EffectVectorVariable eV = effect.GetVariableByName(varName).AsVector();
     UpdateSharedParameter update = ((fxParam, renderer) => Vector4Update(fxParam.EffectVariable, vectorOp()));
     return new SharedParameter(varName, SceneVariable.VectorOp,effect, eV, update);
 }