Class PositionSet
java.lang.Object
ac.boar.anticheat.prediction.vehicle.PositionSet
-
Method Summary
Modifier and TypeMethodDescriptionfloatcenterX()floatcenterY()floatcenterZ()copy()floatexcess(float px, float py, float pz, float slack) How far the point is outside the shape.hull(PositionSet other) floatlength()floatmaxX()floatmaxY()floatmaxZ()floatminX()floatminY()floatminZ()voidmixInPlace(PositionSet other, float w) static PositionSetstatic PositionSetpoint(float x, float y, float z) static floatslack(float x, float y, float z) toString()
-
Method Details
-
slack
public static float slack(float x, float y, float z) -
point
-
path
-
copy
-
mixInPlace
-
hull
-
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
-