org.nlogo.agent
Class Protractor3D

java.lang.Object
  extended by org.nlogo.agent.Protractor
      extended by org.nlogo.agent.Protractor3D
All Implemented Interfaces:
Protractor

public class Protractor3D
extends Protractor


Method Summary
 double distance(Agent agent1, Agent agent2, boolean wrap)
           
 double distance(Agent agent, double x1, double y1, double z1, boolean wrap)
           
 double distance(double x1, double y1, double z1, double x2, double y2, double z2, boolean wrap)
           
 Patch getPatchAtHeadingAndDistance(Agent a, double heading, double distance)
           
 Patch getPatchAtHeadingPitchAndDistance(double x, double y, double z, double heading, double pitch, double distance)
           
 double towardsPitch(Agent fromAgent, Agent toAgent, boolean wrap)
           
 double towardsPitch(Agent fromAgent, double toX, double toY, double toZ, boolean wrap)
           
 double towardsPitch(double fromX, double fromY, double fromZ, double toX, double toY, double toZ, boolean wrap)
           
 double[] towardsVector(double fromX, double fromY, double fromZ, double toX, double toY, double toZ, boolean wrap)
           
 
Methods inherited from class org.nlogo.agent.Protractor
distance, distance, distanceToLink, getPatchAtHeadingAndDistance, inBounds, towards, towards, towards
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

distance

public double distance(Agent agent1,
                       Agent agent2,
                       boolean wrap)
Overrides:
distance in class Protractor

distance

public double distance(Agent agent,
                       double x1,
                       double y1,
                       double z1,
                       boolean wrap)

distance

public double distance(double x1,
                       double y1,
                       double z1,
                       double x2,
                       double y2,
                       double z2,
                       boolean wrap)

getPatchAtHeadingAndDistance

public Patch getPatchAtHeadingAndDistance(Agent a,
                                          double heading,
                                          double distance)
                                   throws AgentException
Overrides:
getPatchAtHeadingAndDistance in class Protractor
Throws:
AgentException

getPatchAtHeadingPitchAndDistance

public Patch getPatchAtHeadingPitchAndDistance(double x,
                                               double y,
                                               double z,
                                               double heading,
                                               double pitch,
                                               double distance)
                                        throws AgentException
Throws:
AgentException

towardsPitch

public double towardsPitch(Agent fromAgent,
                           Agent toAgent,
                           boolean wrap)
                    throws AgentException
Overrides:
towardsPitch in class Protractor
Throws:
AgentException

towardsPitch

public double towardsPitch(Agent fromAgent,
                           double toX,
                           double toY,
                           double toZ,
                           boolean wrap)
                    throws AgentException
Overrides:
towardsPitch in class Protractor
Throws:
AgentException

towardsPitch

public double towardsPitch(double fromX,
                           double fromY,
                           double fromZ,
                           double toX,
                           double toY,
                           double toZ,
                           boolean wrap)
                    throws AgentException
Specified by:
towardsPitch in interface Protractor
Overrides:
towardsPitch in class Protractor
Throws:
AgentException

towardsVector

public double[] towardsVector(double fromX,
                              double fromY,
                              double fromZ,
                              double toX,
                              double toY,
                              double toZ,
                              boolean wrap)
                       throws AgentException
Throws:
AgentException