Class LevelResult

Object
LevelResult

public class LevelResult extends Object
Represents the result of a level operation, containing the level value, object mask, and histogram.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LevelResult(int level, ObjectMask object, Histogram histogram)
    Creates a new LevelResult instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    distanceSquaredTo(Point3i sourcePoint)
    Calculates the squared distance from the midpoint of this level's object to a given point.
    Histogram
    The Histogram of intensity values for this level.
    int
    The level value.
    ObjectMask
    The ObjectMask associated with this level.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LevelResult

      public LevelResult(int level, ObjectMask object, Histogram histogram)
      Creates a new LevelResult instance.
      Parameters:
      level - The level value.
      object - The ObjectMask associated with this level.
      histogram - The Histogram of intensity values for this level.
  • Method Details

    • distanceSquaredTo

      public double distanceSquaredTo(Point3i sourcePoint)
      Calculates the squared distance from the midpoint of this level's object to a given point.
      Parameters:
      sourcePoint - the Point3i to calculate the distance to
      Returns:
      the squared distance between the midpoint of this level's object and the given point
    • getLevel

      public int getLevel()
      The level value.
    • getObject

      public ObjectMask getObject()
      The ObjectMask associated with this level.
    • getHistogram

      public Histogram getHistogram()
      The Histogram of intensity values for this level.