Beispiel #1
0
 public WPos(WDist x, WDist y, WDist z)
 {
     X = x.Length; Y = y.Length; Z = z.Length;
 }
Beispiel #2
0
 // Sampled a N-sample probability density function in the range [-1024..1024, -1024..1024]
 // 1 sample produces a rectangular probability
 // 2 samples produces a triangular probability
 // ...
 // N samples approximates a true Gaussian
 public static WVec FromPDF(MersenneTwister r, int samples)
 {
     return(new WVec(WDist.FromPDF(r, samples), WDist.FromPDF(r, samples), WDist.Zero));
 }