Class BoundRotation
Object
org.anchoranalysis.bean.AnchorBean<BoundRotation>
org.anchoranalysis.mpp.bean.bound.rotation.BoundRotation
- Direct Known Subclasses:
BoundRotation2D,BoundRotation3D
public abstract class BoundRotation extends AnchorBean<BoundRotation>
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 Constructor Description BoundRotation() -
Method Summary
Modifier and Type Method Description abstract org.anchoranalysis.spatial.orientation.OrientationrandomOrientation(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 org.anchoranalysis.spatial.orientation.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
Orientationwithin the defined bounds
-