Esempio n. 1
0
 // RANDOM POINT IN A RING on a SPHERE. Return a Vector3
 // TODO: see RandomSphere public static Vector3 GetPointOnRing(float innerSpotAngle, float outerSpotAngle, ref NPack.MersenneTwister _rand, Quaternion orientation)
 public Vector3 PointOnRing(float innerAngle, float outerAngle)
 {
     return(RandomSphere.GetPointOnRing(innerAngle, outerAngle, ref _rand));
 }
Esempio n. 2
0
 // RANDOM POINT IN A SPHERE. Return a Vector3
 public Vector3 PointInASphere()
 {
     return(RandomSphere.Volume(ref _rand));
 }
Esempio n. 3
0
 // RANDOM POINT IN A CAP. Return a Vector3
 // TODO: see RandomSphere GetPointOnCap(float spotAngle, ref NPack.MersenneTwister _rand, Quaternion orientation)
 public Vector3 PointOnCap(float spotAngle)
 {
     return(RandomSphere.GetPointOnCap(spotAngle, ref _rand));
 }
Esempio n. 4
0
 // RANDOM POINT ON A SPHERE. Return a Vector3
 public Vector3 PointOnASphere()
 {
     return(RandomSphere.Surface(ref _rand));
 }