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 newLevelResultinstance. -
Method Summary
Modifier and TypeMethodDescriptiondoubledistanceSquaredTo(Point3i sourcePoint) Calculates the squared distance from the midpoint of this level's object to a given point.TheHistogramof intensity values for this level.intgetLevel()The level value.TheObjectMaskassociated with this level.
-
Constructor Details
-
LevelResult
Creates a newLevelResultinstance.- Parameters:
level- The level value.object- TheObjectMaskassociated with this level.histogram- TheHistogramof 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- thePoint3ito 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
TheObjectMaskassociated with this level. -
getHistogram
TheHistogramof intensity values for this level.
-