Class BoundRotation2D
Object
org.anchoranalysis.bean.AnchorBean<BoundRotation>
org.anchoranalysis.mpp.bean.bound.rotation.BoundRotation
org.anchoranalysis.mpp.bean.bound.rotation.BoundRotation2D
public class BoundRotation2D extends BoundRotation
Creates a randomly-generated orientation in 2D by uniformally sampling a scalar rotation angle
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description BoundRotation2D() -
Method Summary
Modifier and Type Method Description StringdescribeBean()BoundgetRotationAngle()org.anchoranalysis.spatial.orientation.OrientationrandomOrientation(RandomNumberGenerator randomNumberGenerator, Optional<Resolution> resolution)Generates a random orientation within the defined bounds.voidsetRotationAngle(Bound rotationAngle)Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BoundRotation2D
public BoundRotation2D()
-
-
Method Details
-
randomOrientation
public org.anchoranalysis.spatial.orientation.Orientation randomOrientation(RandomNumberGenerator randomNumberGenerator, Optional<Resolution> resolution)Description copied from class:BoundRotationGenerates a random orientation within the defined bounds.- Specified by:
randomOrientationin classBoundRotation- 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
-
describeBean
- Overrides:
describeBeanin classAnchorBean<BoundRotation>
-
getRotationAngle
-
setRotationAngle
-