Class BoundDegrees
- All Implemented Interfaces:
Serializable
Represents an upper and lower bound in degrees which is converted to radians when resolved.
This class extends BoundMinMax
to provide specific functionality for degree-based
bounds, automatically converting degrees to radians when resolving the bounds.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with default bounds of 0 to 360 degrees.BoundDegrees
(BoundDegrees source) Creates a new instance by copying an existingBoundDegrees
. -
Method Summary
Modifier and TypeMethodDescriptionCreates a duplicate of this bound.double
getMaxResolved
(Optional<Resolution> resolution, boolean do3D) Gets the resolved maximum value of the bound, considering resolution and dimensionality.double
getMinResolved
(Optional<Resolution> resolution, boolean do3D) Gets the resolved minimum value of the bound, considering resolution and dimensionality.Methods inherited from class org.anchoranalysis.mpp.bean.bound.BoundMinMax
describeBean, getDelegate, getMax, getMin, scale, setDelegate, setMax, setMin
Methods inherited from class org.anchoranalysis.mpp.bean.bound.MarkBounds
calculateMinMax
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BoundDegrees
public BoundDegrees()Creates a new instance with default bounds of 0 to 360 degrees. -
BoundDegrees
Creates a new instance by copying an existingBoundDegrees
.- Parameters:
source
- the sourceBoundDegrees
to copy from
-
-
Method Details
-
getMinResolved
Description copied from class:MarkBounds
Gets the resolved minimum value of the bound, considering resolution and dimensionality.- Specified by:
getMinResolved
in classMarkBounds
- Parameters:
resolution
- an optional resolution to consider when resolving the bounddo3D
- whether to consider 3D resolution (if available)- Returns:
- the resolved minimum value
-
getMaxResolved
Description copied from class:MarkBounds
Gets the resolved maximum value of the bound, considering resolution and dimensionality.- Specified by:
getMaxResolved
in classMarkBounds
- Parameters:
resolution
- an optional resolution to consider when resolving the bounddo3D
- whether to consider 3D resolution (if available)- Returns:
- the resolved maximum value
-
duplicate
Description copied from class:Bound
Creates a duplicate of this bound.
-