aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/api/RelativePoint.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-18 16:38:49 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-18 16:38:49 +0800
commit4d0b2d3f50bf56b83498a3b787ac08afaeb85eff (patch)
tree77c206a271fb6f5b6ae1dbe3d24d794420cf1841 /src/main/java/me/shedaniel/rei/api/RelativePoint.java
parent69a531030df74768d86025cd5668e0418a3c1f07 (diff)
downloadRoughlyEnoughItems-4d0b2d3f50bf56b83498a3b787ac08afaeb85eff.tar.gz
RoughlyEnoughItems-4d0b2d3f50bf56b83498a3b787ac08afaeb85eff.tar.bz2
RoughlyEnoughItems-4d0b2d3f50bf56b83498a3b787ac08afaeb85eff.zip
up to 4x faster search
Diffstat (limited to 'src/main/java/me/shedaniel/rei/api/RelativePoint.java')
-rw-r--r--src/main/java/me/shedaniel/rei/api/RelativePoint.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/main/java/me/shedaniel/rei/api/RelativePoint.java b/src/main/java/me/shedaniel/rei/api/RelativePoint.java
deleted file mode 100644
index 0d54e866e..000000000
--- a/src/main/java/me/shedaniel/rei/api/RelativePoint.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Roughly Enough Items by Danielshe.
- * Licensed under the MIT License.
- */
-
-package me.shedaniel.rei.api;
-
-public class RelativePoint {
-
- private double relativeX, relativeY;
-
- public RelativePoint(double relativeX, double relativeY) {
- this.relativeX = relativeX;
- this.relativeY = relativeY;
- }
-
- public double getRelativeX() {
- return relativeX;
- }
-
- public double getRelativeY() {
- return relativeY;
- }
-
- public double getX(double width) {
- return width * relativeX;
- }
-
- public double getY(double height) {
- return height * relativeY;
- }
-
-}