(double direction, double position, int blockPosition)
| 205 | } |
| 206 | |
| 207 | private double getPosition(double direction, double position, int blockPosition) { |
| 208 | return direction > 0 ? (position - blockPosition) : (blockPosition + 1 - position); |
| 209 | } |
| 210 | |
| 211 | private double getXPosition(@NotNull Vector direction, @NotNull Vector position, @NotNull Block block) { |
| 212 | return getPosition(direction.getX(), position.getX(), block.getX()); |
no outgoing calls
no test coverage detected