Uses of Class
repast.simphony.space.continuous.NdPoint
Packages that use NdPoint
Package
Description
-
Uses of NdPoint in repast.simphony.relogo
Methods in repast.simphony.relogo that return NdPointModifier and TypeMethodDescriptionAbstractPatch.getGridLocationAsNdPoint()
Patch.getGridLocationAsNdPoint()
AbstractTurtle.getTurtleLocation()
Turtle.getTurtleLocation()
Methods in repast.simphony.relogo with parameters of type NdPointModifier 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
Methods in repast.simphony.relogo.factories with parameters of type NdPointModifier 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
Methods in repast.simphony.space with parameters of type NdPointModifier 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
Fields in repast.simphony.space.continuous declared as NdPointMethods in repast.simphony.space.continuous that return NdPointModifier 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.Methods in repast.simphony.space.continuous that return types with arguments of type NdPointMethods in repast.simphony.space.continuous with parameters of type NdPointModifier 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.Method parameters in repast.simphony.space.continuous with type arguments of type NdPointModifier 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.Constructor parameters in repast.simphony.space.continuous with type arguments of type NdPointModifierConstructorDescriptionDefaultContinuousSpace
(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
Fields in repast.simphony.valueLayer with type parameters of type NdPoint -
Uses of NdPoint in repast.simphony.visualization.editor.space
Methods in repast.simphony.visualization.editor.space that return NdPointModifier 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.Methods in repast.simphony.visualization.editor.space with parameters of type NdPointModifier 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.