Class RadiiRandomizer
Object
RadiiRandomizer
Utility functions for generating random radii for
ConicBase.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic Point3drandomizeRadii(Bound bound, RandomNumberGenerator randomNumberGenerator, Optional<Resolution> resolution, boolean do3D) Generates random radii for a conic shape.
-
Method Details
-
randomizeRadii
public static 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
-