Class BoundRotation
- Direct Known Subclasses:
BoundRotation2D
,BoundRotation3D
Abstract base class for defining bounds on rotations.
This class extends AnchorBean
to provide a foundation for various types of rotation
bounds.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Orientation
randomOrientation
(RandomNumberGenerator randomNumberGenerator, Optional<Resolution> resolution) Generates a random orientation within the defined bounds.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BoundRotation
public BoundRotation()
-
-
Method Details
-
randomOrientation
public abstract Orientation randomOrientation(RandomNumberGenerator randomNumberGenerator, Optional<Resolution> resolution) Generates a random orientation within the defined bounds.- Parameters:
randomNumberGenerator
- the random number generator to useresolution
- an optional resolution to consider when generating the orientation- Returns:
- a randomly generated
Orientation
within the defined bounds
-