Package net.storm.sdk.coords
Class Coordinate
java.lang.Object
net.storm.sdk.coords.Coordinate
Utility class for screen coordinate operations.
This class provides helper methods for manipulating 2D screen coordinates
represented by Point objects.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.runelite.api.PointoffsetFrom(net.runelite.api.Point point, int x, int y) Creates a new point offset from the given point by the specified amounts.
-
Constructor Details
-
Coordinate
public Coordinate()
-
-
Method Details
-
offsetFrom
public static net.runelite.api.Point offsetFrom(net.runelite.api.Point point, int x, int y) Creates a new point offset from the given point by the specified amounts.This method does not modify the original point; it returns a new Point with the offset applied.
- Parameters:
point- the original point to offset fromx- the horizontal offset (positive = right, negative = left)y- the vertical offset (positive = down, negative = up)- Returns:
- a new Point with the offset applied
-