Esempio n. 1
0
 public Point positionRelativeTo(EntityStatic entity)
 {
     return(new Point(
                this.getX() - entity.getX(),
                this.getY() - entity.getY()
                ));
 }
Esempio n. 2
0
        public Vector getRelativeTranslationalVectorOf(EntityStatic entity)
        {
            Point returnPoint = this.getRelativeTranslationalPositionOf(entity);

            Vector returnVector = new Vector(returnPoint.getX(), returnPoint.getY());

            return(returnVector);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public int yRelativeTo(EntityStatic entity)
 {
     return(this.getY() - entity.getY());
 }