Interface DistanceUpdateLimiter
- All Known Subinterfaces:
DistanceUpdateLimiterImpl
- All Known Implementing Classes:
BandedPrimeLimiter,NonLimiter
@NonExtendable
public interface DistanceUpdateLimiter
Interface for rate-limiting updates based on an object's distance from the camera.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldUpdate(double distanceSquared) Check to see if an object at the given position relative to the camera should be updated.
-
Method Details
-
shouldUpdate
boolean shouldUpdate(double distanceSquared) Check to see if an object at the given position relative to the camera should be updated.- Parameters:
distanceSquared- The distance squared from the camera to the object.- Returns:
trueif the object should be updated,falseotherwise.
-