Class PlayerRelativeToPoint

java.lang.Object
privbot.query.PlayerRelativeToPoint

public final class PlayerRelativeToPoint extends Object
Strict cardinal comparisons between the player's tile and an anchor tile. Every test is false when either point is null or the planes differ.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    playerEastOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor)
    Player tile is strictly east of anchor (higher X).
    static boolean
    playerNorthOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor)
    Player tile is strictly north of anchor (higher Y).
    static boolean
    playerSouthOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor)
    Player tile is strictly south of anchor (lower Y).
    static boolean
    playerWestOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor)
    Player tile is strictly west of anchor (lower X).
    static boolean
    samePlane(net.runelite.api.coords.WorldPoint a, net.runelite.api.coords.WorldPoint b)
    True when both points are non-null and on the same plane.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • samePlane

      public static boolean samePlane(net.runelite.api.coords.WorldPoint a, net.runelite.api.coords.WorldPoint b)
      True when both points are non-null and on the same plane.
    • playerNorthOf

      public static boolean playerNorthOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor)
      Player tile is strictly north of anchor (higher Y).
    • playerSouthOf

      public static boolean playerSouthOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor)
      Player tile is strictly south of anchor (lower Y).
    • playerEastOf

      public static boolean playerEastOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor)
      Player tile is strictly east of anchor (higher X).
    • playerWestOf

      public static boolean playerWestOf(net.runelite.api.coords.WorldPoint player, net.runelite.api.coords.WorldPoint anchor)
      Player tile is strictly west of anchor (lower X).