1 package com.irtimaled.bbor.client.renderers;
3 import com.irtimaled.bbor.client.Player;
4 import com.irtimaled.bbor.client.models.Point;
5 import com.irtimaled.bbor.common.models.Coords;
8 private final Point point;
10 OffsetPoint(double x, double y, double z) {
11 this(new Point(x, y, z));
14 OffsetPoint(Coords coords) {
15 this(new Point(coords));
18 private OffsetPoint(Point point) {
23 return point.getX() - Player.getX();
27 return point.getY() - Player.getY();
31 return point.getZ() - Player.getZ();
34 OffsetPoint offset(double x, double y, double z) {
35 return new OffsetPoint(point.offset(x, y, z));
38 double getDistance(OffsetPoint offsetPoint) {
39 return this.point.getDistance(offsetPoint.point);