Class PositionSet

java.lang.Object
ac.boar.anticheat.prediction.vehicle.PositionSet

public final class PositionSet extends Object
  • Method Details

    • slack

      public static float slack(float x, float y, float z)
    • point

      public static PositionSet point(float x, float y, float z)
    • path

      public static PositionSet path(List<float[]> points)
    • copy

      public PositionSet copy()
    • mixInPlace

      public void mixInPlace(PositionSet other, float w)
    • hull

      public PositionSet hull(PositionSet other)
    • centerX

      public float centerX()
    • centerY

      public float centerY()
    • centerZ

      public float centerZ()
    • minX

      public float minX()
    • maxX

      public float maxX()
    • minZ

      public float minZ()
    • maxZ

      public float maxZ()
    • minY

      public float minY()
    • maxY

      public float maxY()
    • length

      public float length()
    • excess

      public float excess(float px, float py, float pz, float slack)
      How far the point is outside the shape. 0 or less means inside. Slack (float precision) is added on each axis, so a flat shape still has some size. Exact test: a point is inside only if it is inside every face. Face directions are cross products of two pieces (the slack axes count as pieces). Outside, the answer is the largest distance past one face. It is never more than the true distance.
    • toString

      public String toString()
      Overrides:
      toString in class Object