Class LevelResult
Object
LevelResult
Represents the result of a level operation, containing the level value, object mask, and
histogram.
-
Constructor Summary
ConstructorsConstructorDescriptionLevelResult
(int level, ObjectMask object, Histogram histogram) Creates a newLevelResult
instance. -
Method Summary
Modifier and TypeMethodDescriptiondouble
distanceSquaredTo
(Point3i sourcePoint) Calculates the squared distance from the midpoint of this level's object to a given point.TheHistogram
of intensity values for this level.int
getLevel()
The level value.TheObjectMask
associated with this level.
-
Constructor Details
-
LevelResult
Creates a newLevelResult
instance.- Parameters:
level
- The level value.object
- TheObjectMask
associated with this level.histogram
- TheHistogram
of intensity values for this level.
-
-
Method Details
-
distanceSquaredTo
Calculates the squared distance from the midpoint of this level's object to a given point.- Parameters:
sourcePoint
- thePoint3i
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
TheObjectMask
associated with this level. -
getHistogram
TheHistogram
of intensity values for this level.
-