Class RadiiRandomizer
Object
org.anchoranalysis.mpp.mark.conic.RadiiRandomizer
public class RadiiRandomizer extends Object
Utility functions for generating random radii for
ConicBase.- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static org.anchoranalysis.spatial.point.Point3drandomizeRadii(Bound bound, RandomNumberGenerator randomNumberGenerator, Optional<Resolution> resolution, boolean do3D)Generates random radii for a conic shape.
-
Method Details
-
randomizeRadii
public static org.anchoranalysis.spatial.point.Point3d randomizeRadii(Bound bound, RandomNumberGenerator randomNumberGenerator, Optional<Resolution> resolution, boolean do3D)Generates random radii for a conic shape.- Parameters:
bound- the bound constraining the radii valuesrandomNumberGenerator- the random number generator to useresolution- an optional resolution to consider when generating radiido3D- if true, generates a 3D radius; if false, the z-component is set to 0- Returns:
- a Point3d representing the randomly generated radii
-