Exemplo n.º 1
0
 // RANDOM POINT in a DISK
 // FROM http://mathworld.wolfram.com/DiskPointPicking.html
 public Vector2 PointInADisk()
 {
     return(RandomDisk.Disk(ref _rand));
 }
Exemplo n.º 2
0
 // RANDOM POINT in a DISK
 // FROM http://mathworld.wolfram.com/DiskPointPicking.html
 public Vector2 PointInADisk(Normalization n, float t)
 {
     return(RandomDisk.Disk(ref _rand, n, t));
 }
Exemplo n.º 3
0
 // RANDOM POINT IN A CIRCLE centered at 0
 // FROM http://mathworld.wolfram.com/CirclePointPicking.html
 // Take a number between 0 and 2PI and move to Cartesian Coordinates
 public Vector2 PointInACircle()
 {
     return(RandomDisk.Circle(ref _rand));
 }