Package me.autobot.lib.math.coordinates
Class Projection
java.lang.Object
me.autobot.lib.math.coordinates.Projection
A projection of a shape onto an axis.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProjection
(double min, double max) Creates a new projection with the given min and max values. -
Method Summary
Modifier and TypeMethodDescriptionboolean
overlaps
(Projection other) Checks if this projection overlaps with another projection
-
Field Details
-
min
public double minThe minimum and maximum values of the projection. -
max
public double maxThe minimum and maximum values of the projection.
-
-
Constructor Details
-
Projection
public Projection(double min, double max) Creates a new projection with the given min and max values.- Parameters:
min
- The minimum value of the projection. This value must be less than or equal to max.max
- The maximum value of the projection. This value must be greater than or equal to min.
-
-
Method Details
-
overlaps
Checks if this projection overlaps with another projection- Parameters:
other
- The other projection to check for overlap with this projection.- Returns:
- True if the projections overlap, false otherwise.
-