Uses of Class
repast.simphony.space.continuous.NdPoint
Package
Description
-
Uses of NdPoint in repast.simphony.relogo
Modifier and TypeMethodDescriptionAbstractPatch.getGridLocationAsNdPoint()
Patch.getGridLocationAsNdPoint()
AbstractTurtle.getTurtleLocation()
Turtle.getTurtleLocation()
Modifier and TypeMethodDescriptionstatic GridPoint
Utility.getGridPointAtDisplacement
(NdPoint currentLocation, double[] displacement, Observer observer) Returns the GridPoint object of the grid location corresponding to the displacement from the NdPoint currentLocation.static AgentSet
JavaUtility.inRadiusUtility
(AgentSet a, Number num, ContinuousSpace space, NdPoint location) static GridPoint
Utility.ndPointToGridPoint
(NdPoint loc) Given a continuous space location, return the corresponding grid location as a GridPoint.static int[]
Utility.ndPointToIntArray
(NdPoint loc) Given a continuous space location, return the corresponding grid location as an int array.void
AbstractTurtle.setBaseTurtleProperties
(Observer observer, TurtleFactory turtleFactory, String turtleShape, double heading, double color, NdPoint loc) -
Uses of NdPoint in repast.simphony.relogo.factories
Modifier and TypeMethodDescriptionTurtleFactory.createTurtle
(String turtleType, double heading, double color, NdPoint loc) TurtleFactory.createTurtle
(String turtleType, NdPoint loc) TurtleFactory.createTurtle
(NdPoint loc) -
Uses of NdPoint in repast.simphony.space
Modifier and TypeMethodDescriptionstatic double
SpatialMath.calcAngleFor2DMovement
(ContinuousSpace<? extends Object> space, NdPoint point1, NdPoint point2) Calculates the angle in radians between the two points on the horizontal plane. -
Uses of NdPoint in repast.simphony.space.continuous
Modifier and TypeMethodDescriptionAbstractContinuousSpace.getLocation
(Object obj) Gets the location of the specified object.ContinuousSpace.getLocation
(Object obj) Gets the location of the specified object.AbstractContinuousSpace.moveByDisplacement
(T object, double... displacement) Moves the specified object from its current location by the specified amount.ContinuousSpace.moveByDisplacement
(T object, double... displacement) Moves the specified object from its current location by the specified amount.AbstractContinuousSpace.moveByVector
(T object, double distance, double... anglesInRadians) Moves the specifed object the specified distance from its current position along the specified angle.ContinuousSpace.moveByVector
(T object, double distance, double... anglesInRadians) Moves the specifed object the specified distance from its current position along the specified angle.Modifier and TypeMethodDescriptionGets the item at the specified location in the map.Gets the item at the specified location in the map.Gets the item at the specified location in the map.Gets all the items at the specified location in the map.Gets all the items at the specified location in the map.Gets all the items at the specified location in the map.double[]
AbstractContinuousSpace.getDisplacement
(NdPoint point1, NdPoint point2) Returns the displacement between the NdPoints point1 and point2.double[]
ContinuousSpace.getDisplacement
(NdPoint point1, NdPoint point2) Returns the displacement between the NdPoints point1 and point2.double
AbstractContinuousSpace.getDistance
(NdPoint point1, NdPoint point2) Calculates the euclidian distance between the NdPoints point1 and point2.double
ContinuousSpace.getDistance
(NdPoint point1, NdPoint point2) Returns the distance between the NdPoints point1 and point2, taking into account the space's topology.double
AbstractContinuousSpace.getDistanceSq
(NdPoint point1, NdPoint point2) Calculates the square of the euclidian distance between the NdPoints point1 and point2.double
ContinuousSpace.getDistanceSq
(NdPoint point1, NdPoint point2) Returns the square of the distance between the NdPoints point1 and point2, taking into account the space's topology.CoordinateAccessor.getRandom
(cern.jet.random.Uniform distribution, U locationStorage, NdPoint location) Gets a random item from those at the specified location in the map.MultiOccupancyCoordinateAccessor.getRandom
(cern.jet.random.Uniform distribution, Map<NdPoint, Object> locationMap, NdPoint location) Gets a random item from those at the specified location in the map.SingleOccupancyCoordinateAccessor.getRandom
(cern.jet.random.Uniform distribution, Map<NdPoint, Object> locationMap, NdPoint location) Gets a random item from those at the specified location in the map.boolean
Attempts to put the specified object at the specified location.boolean
Attempts to put the specified object at the specified location.boolean
Attempts to put the specified object at the specified location.void
Removes the specified object from the location in the map.void
Removes the specified object from the location in the map.void
Removes the specified object from the location in the map.void
Transform the given targetLocation according to default moveTo semantics.void
Transform the given targetLocation according to this PointTranslator's semantics.void
Transform the given targetLocation according to periodic "wrapped" semantics.void
Translate the specified location by the specified displacement.For example, if the location is (3, 4) and the displacement is (1, -2), the new location will be (4, 2).void
Translate the specified location by the specified displacement.For example, if the location is (3, 4) and the displacement is (1, -2), the new location will be (4, 2).void
Translates the specified location by the amount of displacement along each dimensions.void
Translate the specified location by the specified displacement.For example, if the location is (3, 4) and the displacement is (1, -2), the new location will be (4, 2).void
Translates the specified location by the specified displacement according to periodic "wrapped" semantics.Modifier and TypeMethodDescriptionGets the item at the specified location in the map.Gets the item at the specified location in the map.Gets all the items at the specified location in the map.Gets all the items at the specified location in the map.MultiOccupancyCoordinateAccessor.getRandom
(cern.jet.random.Uniform distribution, Map<NdPoint, Object> locationMap, NdPoint location) Gets a random item from those at the specified location in the map.SingleOccupancyCoordinateAccessor.getRandom
(cern.jet.random.Uniform distribution, Map<NdPoint, Object> locationMap, NdPoint location) Gets a random item from those at the specified location in the map.boolean
Attempts to put the specified object at the specified location.boolean
Attempts to put the specified object at the specified location.void
Removes the specified object from the location in the map.void
Removes the specified object from the location in the map.ModifierConstructorDescriptionDefaultContinuousSpace
(String name, ContinuousAdder<T> adder, PointTranslator translator, CoordinateAccessor<T, Map<NdPoint, Object>> accessor, double... size) Constructs this space with the specified name, adder, translator, accessor and size. -
Uses of NdPoint in repast.simphony.valueLayer
-
Uses of NdPoint in repast.simphony.visualization.editor.space
Modifier and TypeMethodDescriptionProjected3DSpace.getLocation
(Object obj) Gets the location of the specified object.Projected3DSpace.moveByDisplacement
(T object, double... displacement) Moves the specified object from its current location by the specified amount.Projected3DSpace.moveByVector
(T object, double distance, double... anglesInRadians) Moves the specifed object the specified distance from its current position along the specified angle.Modifier and TypeMethodDescriptiondouble[]
Projected3DSpace.getDisplacement
(NdPoint point1, NdPoint point2) Returns the displacement between the NdPoints point1 and point2.double
Projected3DSpace.getDistance
(NdPoint point1, NdPoint point2) Gets the the euclidian distance between the NdPoints point1 and point2.double
Projected3DSpace.getDistanceSq
(NdPoint point1, NdPoint point2) Gets the square of the euclidian distance between the NdPoints point1 and point2.