org.nlogo.agent
Class Link3D

java.lang.Object
  extended by java.util.Observable
      extended by org.nlogo.agent.Agent
          extended by org.nlogo.agent.Link
              extended by org.nlogo.agent.Link3D
All Implemented Interfaces:
Comparable<Agent>, Agent, Link, Link3D

public class Link3D
extends Link
implements Link3D


Field Summary
 
Fields inherited from class org.nlogo.agent.Link
BIT, DEFAULT_COLOR, LAST_PREDEFINED_VAR, MODE_FIXED, MODE_FREE, MODE_NONE, NUMBER_PREDEFINED_VARS, VAR_BREED, VAR_COLOR, VAR_END1, VAR_END2, VAR_LABEL, VAR_SHAPE, VAR_THICKNESS, VAR_TIEMODE
 
Fields inherited from class org.nlogo.agent.Agent
id, variables
 
Constructor Summary
Link3D(World world, Turtle end1, Turtle end2, AgentSet breed)
           
 
Method Summary
 double pitch()
          Returns the pitch towards end2 from end1
 double z1()
          Returns the z-coordinate of end1
 double z2()
          Returns the z-coordinate of end2 this coordinate is "unwrapped" so it may actually be outside the bounds of the world
 
Methods inherited from class org.nlogo.agent.Link
agentKey, bothEnds, cachedShape, cachedShape, classDisplayName, color, color, colorDouble, colorDoubleUnchecked, compareTo, die, end1, end2, getAgentBit, getAgentClass, getBreed, getBreedIndex, getBreedVariable, getLinkBreedVariable, getLinkVariable, getLinkVariableDouble, getObserverVariable, getPatchAtOffsets, getPatchVariable, getTurtleOrLinkVariable, getTurtleVariable, getVariable, hasLabel, heading, hidden, hidden, isDirectedLink, isTied, label, label, labelColor, labelColor, labelColor, labelString, lineThickness, lineThickness, linkDestinationSize, midpointX, midpointY, mode, mode, setBreed, setBreedVariable, setBreedVariable, setLinkBreedVariable, setLinkVariable, setLinkVariable, setObserverVariable, setPatchVariable, setPatchVariable, setTurtleOrLinkVariable, setTurtleVariable, setTurtleVariable, setVariable, shape, shape, size, toString, untie, x1, x2, y1, y2
 
Methods inherited from class org.nlogo.agent.Agent
getVariableCount, id, variableConstraint, variableConstraint, world
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nlogo.api.Link
color, end1, end2, getBreed, getBreedIndex, hasLabel, heading, hidden, isDirectedLink, labelColor, labelString, lineThickness, linkDestinationSize, midpointX, midpointY, x1, x2, y1, y2
 
Methods inherited from interface org.nlogo.api.Agent
classDisplayName, getVariable, id, setVariable, shape, size, world
 

Constructor Detail

Link3D

public Link3D(World world,
              Turtle end1,
              Turtle end2,
              AgentSet breed)
Method Detail

z1

public double z1()
Description copied from interface: Link3D
Returns the z-coordinate of end1

Specified by:
z1 in interface Link3D

z2

public double z2()
Description copied from interface: Link3D
Returns the z-coordinate of end2 this coordinate is "unwrapped" so it may actually be outside the bounds of the world

Specified by:
z2 in interface Link3D

pitch

public double pitch()
Description copied from interface: Link3D
Returns the pitch towards end2 from end1

Specified by:
pitch in interface Link3D