コード例 #1
0
ファイル: LCG.cs プロジェクト: aybe/MathGeoLib.Exports
 public static extern float lcg_float_incl([In][Out] LCG lcg, float a, float b);
コード例 #2
0
ファイル: LCG.cs プロジェクト: aybe/MathGeoLib.Exports
 public static extern float lcg_float_neg([In][Out] LCG lcg);
コード例 #3
0
ファイル: LCG.cs プロジェクト: aybe/MathGeoLib.Exports
 public static extern float lcg_float_range([In][Out] LCG lcg, float a, float b);
コード例 #4
0
ファイル: LCG.cs プロジェクト: aybe/MathGeoLib.Exports
 public static extern int lcg_int_range([In][Out] LCG lcg, int a, int b);
コード例 #5
0
ファイル: LCG.cs プロジェクト: aybe/MathGeoLib.Exports
 public static extern float lcg_float_01_incl([In][Out] LCG lcg);
コード例 #6
0
ファイル: LCG.cs プロジェクト: aybe/MathGeoLib.Exports
 public static extern int lcg_int([In][Out] LCG lcg);
コード例 #7
0
ファイル: LCG.cs プロジェクト: aybe/MathGeoLib.Exports
 public static extern uint lcg_int_fast([In][Out] LCG lcg);
コード例 #8
0
ファイル: LCG.cs プロジェクト: aybe/MathGeoLib.Exports
 public static extern void lcg_seed([In][Out] LCG lcg,
                                    uint seed, uint multiplier, uint increment, uint modulus
                                    );
コード例 #9
0
 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
     );