Skip to content

coproc/RandomSpherePoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RandomSpherePoints

Python code for getting uniformly distributed points on or inside a sphere

from randomSpherePoints import randomPointOnSphere
x,y,z = randomPointOnSphere()
# p = (x,y,z) is uniformly distributed on the surface of the unit sphere

from randomSpherePoints import randomPointInsideSphere
x,y,z = randomPointInsideSphere()
# p = (x,y,z) is uniformly distributed inside the unit sphere

About

Python code for getting uniformly distributed points on or inside a sphere

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages