public Point positionRelativeTo(EntityStatic entity) { return(new Point( this.getX() - entity.getX(), this.getY() - entity.getY() )); }
public Vector getRelativeTranslationalVectorOf(EntityStatic entity) { Point returnPoint = this.getRelativeTranslationalPositionOf(entity); Vector returnVector = new Vector(returnPoint.getX(), returnPoint.getY()); return(returnVector); }
public Vector getFullRelativeVectorDistanceOf(EntityStatic entity) { Point returnPoint = this.getRelativeTranslationalPositionOf(entity); returnPoint = this.angularComposite.getRotationalRelativePositionOf(returnPoint); Vector returnVector = new Vector(returnPoint.getX(), returnPoint.getY()); return(returnVector); }
public int yRelativeTo(EntityStatic entity) { return(this.getY() - entity.getY()); }