Divide() public method

public Divide ( double s ) : void
s double
return void
Esempio n. 1
0
 // Minkowski normalization.
 private static VectorND MinkowskiNormalize( VectorND v )
 {
     double mag2 = MinkowskiInnerProduct( v, v );
     double abs = mag2 < 0 ? Math.Sqrt( -mag2 ) : Math.Sqrt( mag2 );
     v.Divide( abs );
     return v;
 }