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.doublegetMaxResolved(Optional<Resolution> resolution, boolean do3D) Gets the resolved maximum value of the bound, considering resolution and dimensionality.doublegetMinResolved(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, setMinMethods inherited from class org.anchoranalysis.mpp.bean.bound.MarkBounds
calculateMinMaxMethods 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 sourceBoundDegreesto copy from
-
-
Method Details
-
getMinResolved
Description copied from class:MarkBoundsGets the resolved minimum value of the bound, considering resolution and dimensionality.- Specified by:
getMinResolvedin 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:MarkBoundsGets the resolved maximum value of the bound, considering resolution and dimensionality.- Specified by:
getMaxResolvedin 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:BoundCreates a duplicate of this bound.
-