Class BoundDegrees

All Implemented Interfaces:
Serializable

public class BoundDegrees extends BoundMinMax
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 Details

    • BoundDegrees

      public BoundDegrees()
      Creates a new instance with default bounds of 0 to 360 degrees.
    • BoundDegrees

      public BoundDegrees(BoundDegrees source)
      Creates a new instance by copying an existing BoundDegrees.
      Parameters:
      source - the source BoundDegrees to copy from
  • Method Details

    • getMinResolved

      public double getMinResolved(Optional<Resolution> resolution, boolean do3D)
      Description copied from class: MarkBounds
      Gets the resolved minimum value of the bound, considering resolution and dimensionality.
      Specified by:
      getMinResolved in class MarkBounds
      Parameters:
      resolution - an optional resolution to consider when resolving the bound
      do3D - whether to consider 3D resolution (if available)
      Returns:
      the resolved minimum value
    • getMaxResolved

      public double getMaxResolved(Optional<Resolution> resolution, boolean do3D)
      Description copied from class: MarkBounds
      Gets the resolved maximum value of the bound, considering resolution and dimensionality.
      Specified by:
      getMaxResolved in class MarkBounds
      Parameters:
      resolution - an optional resolution to consider when resolving the bound
      do3D - whether to consider 3D resolution (if available)
      Returns:
      the resolved maximum value
    • duplicate

      public Bound duplicate()
      Description copied from class: Bound
      Creates a duplicate of this bound.
      Specified by:
      duplicate in class Bound
      Returns:
      a new instance of Bound with the same properties as this one