main/src/georegression/geometry/UtilPoint3D_F64.java
public static List<Point3D_F64> random(Point3D_F64 mean ,
										   double minX , double maxX ,
										   double minY , double maxY ,
										   double minZ , double maxZ ,
										   int num, Random rand )
	{
		List<Point3D_F64> ret = new ArrayList<>();

		for( int i = 0; i < num; i++ ) {
			Point3D_F64 p = new Point3D_F64();
			p.x = mean.x + rand.nextDouble() * (maxX-minX) + minX;
			p.y = mean.y + rand.nextDouble() * (maxY-minY) + minY;
			p.z = mean.z + rand.nextDouble() * (maxZ-minZ) + minZ;

			ret.add( p );
		}

		return ret;
	}
public static List<Point3D_F64> random(Point3D_F64 mean ,
										   double minX , double maxX ,
										   double minY , double maxY ,
										   double minZ , double maxZ ,
										   int num, Random rand )
	{
		List<Point3D_F64> ret = new ArrayList<>();

		for( int i = 0; i < num; i++ ) {
			Point3D_F64 p = new Point3D_F64();
			p.x = mean.x + rand.nextDouble() * (maxX-minX) + minX;
			p.y = mean.y + rand.nextDouble() * (maxY-minY) + minY;
			p.z = mean.z + rand.nextDouble() * (maxZ-minZ) + minZ;

			ret.add( p );
		}

		return ret;
	}
public static List < Point3D_F64 > random ( Point3D_F64 mean , double minX , double maxX , double minY , double maxY , double minZ , double maxZ , int num , Random rand ) { List < Point3D_F64 > ret = new ArrayList <> ( ) ; for ( int i = 0 ; i < num ; i ++ ) { Point3D_F64 p = new Point3D_F64 ( ) ; p . x = mean . x + rand . nextDouble ( ) * ( maxX - minX ) + minX ; p . y = mean . y + rand . nextDouble ( ) * ( maxY - minY ) + minY ; p . z = mean . z + rand . nextDouble ( ) * ( maxZ - minZ ) + minZ ; ret . add ( p ) ; } return ret ; }
Creates a list of random points from a uniform distribution along each axis
Creates a list of random points from a uniform distribution along each axis