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 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 values
      randomNumberGenerator - the random number generator to use
      resolution - an optional resolution to consider when generating radii
      do3D - if true, generates a 3D radius; if false, the z-component is set to 0
      Returns:
      a Point3d representing the randomly generated radii