Math Util
dev.anvilcraft.lib.v2.util.MathUtil provides common math and vector operations:
rotationDegrees(Vector2f, float)/rotate(Vector2f, float)– vector rotationangle(Vector2f, Vector2f)/angleDegrees(...)– angle between two vectorsisInRange(double, double, double)/ 2D version – numeric range checkdist(BlockPos, BlockPos)– block position difference (Vec3i)getDirection(BlockPos, BlockPos)– direction from origin to destinationsafeDiv(float/ double, float/ double)– safe division (returns 0 when divisor is 0)clampWithProportion(float, float, float)– clamps cyclically within a range (e.g., angle normalization)