예제 #1
0
 public static extern float lcg_float_incl([In][Out] LCG lcg, float a, float b);
예제 #2
0
 public static extern float lcg_float_neg([In][Out] LCG lcg);
예제 #3
0
 public static extern float lcg_float_range([In][Out] LCG lcg, float a, float b);
예제 #4
0
 public static extern int lcg_int_range([In][Out] LCG lcg, int a, int b);
예제 #5
0
 public static extern float lcg_float_01_incl([In][Out] LCG lcg);
예제 #6
0
 public static extern int lcg_int([In][Out] LCG lcg);
예제 #7
0
 public static extern uint lcg_int_fast([In][Out] LCG lcg);
예제 #8
0
 public static extern void lcg_seed([In][Out] LCG lcg,
                                    uint seed, uint multiplier, uint increment, uint modulus
                                    );
 public Vector3 RandomPointOnSurface(LCG rng)
 {
     NativeMethods.obb_random_point_on_surface(this, rng, out var point);
     return(point);
 }
예제 #10
0
 public static extern void obb_random_point_on_surface(
     [In] OrientedBoundingBox box,
     LCG rng,
     out Vector3 outVec
     );