Class Cost
java.lang.Object
de.bsommerfeld.pathetic.api.pathing.processing.Cost
Represents a cost value used in pathfinding. This class ensures that cost values can be handled
consistently.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
ZERO
A shared instance for zero cost.
-
-
Method Details
-
getValue
public double getValue()Returns the numerical cost value.- Returns:
- The cost value.
-
of
Factory method to create aCost
instance.- Parameters:
value
- The numerical cost.- Returns:
- A new
Cost
instance.
-
equals
-
hashCode
public int hashCode() -
toString
-