Modifier and Type | Method and Description |
---|---|
Collection |
ISpaceController.getSpaceObjectsByGridPosition(IVector2 position,
Object type) |
Modifier and Type | Method and Description |
---|---|
IVector2 |
Space2D.adjustPosition(IVector2 pos)
Calculate a position according to the space borders.
|
IVector2 |
Space2D.getAreaSize()
Returns the size of the simulated area.
|
IVector2 |
Grid2D.getEmptyGridPosition()
Get an empty position in the grid.
|
IVector2 |
Grid2D.getRandomGridPosition(IVector2 distance)
Retrieves a random position within the simulation area with a minimum
distance from the edge.
|
IVector2 |
Space2D.getRandomPosition(IVector2 distance)
Retrieves a random position within the simulation area with a minimum
distance from the edge.
|
Modifier and Type | Method and Description |
---|---|
IVector2 |
Space2D.adjustPosition(IVector2 pos)
Calculate a position according to the space borders.
|
IVector1 |
Space2D.getDistance(IVector2 pos1,
IVector2 pos2)
Get the distance between two positions.
|
ISpaceObject |
KdTree.getNearestObject(IVector2 point)
Finds an object closest to the given point (exhaustive search!).
|
ISpaceObject |
KdTree.getNearestObject(IVector2 point,
double searchRadius)
Finds an object closest to the given point with a given search radius.
|
ISpaceObject |
KdNode.getNearestObject(IVector2 point,
double radiusSquared)
Finds the object nearest to a given point within a search radius.
|
ISpaceObject |
KdTree.getNearestObject(IVector2 point,
double searchRadius,
IFilter filter)
Finds an object closest to the given point with a given search radius,
while filtering objects.
|
ISpaceObject |
KdNode.getNearestObject(IVector2 point,
double radiusSquared,
IFilter filter)
Finds the object nearest to a given point within a search radius while filtering objects.
|
ISpaceObject |
KdTree.getNearestObject(IVector2 point,
IFilter filter)
Finds an object closest to the given point while filtering objects (exhaustive search!).
|
ISpaceObject |
Space2D.getNearestObject(IVector2 position,
IVector1 maxdist,
String type)
Returns the nearest object to the given position within a
maximum distance from the position.
|
List<ISpaceObject> |
KdTree.getNearestObjects(IVector2 point,
double radius)
Finds all objects within a given search radius.
|
List<ISpaceObject> |
KdTree.getNearestObjects(IVector2 point,
double radius,
IFilter filter)
Finds all objects within a given search radius.
|
List<ISpaceObject> |
KdNode.getNearestObjects(IVector2 point,
double radiusSquared,
IFilter filter)
Finds all objects within a given search radius.
|
Set<SpaceObject> |
Grid2D.getNearGridObjects(IVector2 position,
int range,
String[] types) |
Set<ISpaceObject> |
Space2D.getNearObjects(IVector2 position,
IVector1 maxdist)
Retrieve all objects in the distance for a position
|
Set |
Space2D.getNearObjects(IVector2 position,
IVector1 maxdist,
IFilter filter)
Retrieve all objects in the distance for a position
|
Set |
Space2D.getNearObjects(IVector2 position,
IVector1 maxdist,
String type)
Retrieve all objects in the distance for a position
|
Set |
Grid2D.getNearObjects(IVector2 position,
IVector1 distance,
String type)
Retrieve all objects in the distance for a position.
|
Set |
Space2D.getNearObjects(IVector2 position,
IVector1 maxdist,
String type,
IFilter filter)
Retrieve all objects in the distance for a position
|
IVector2 |
Grid2D.getRandomGridPosition(IVector2 distance)
Retrieves a random position within the simulation area with a minimum
distance from the edge.
|
IVector2 |
Space2D.getRandomPosition(IVector2 distance)
Retrieves a random position within the simulation area with a minimum
distance from the edge.
|
Collection |
GridController.getSpaceObjectsByGridPosition(IVector2 position,
Object type) |
Collection<ISpaceObject> |
Grid2D.getSpaceObjectsByGridPosition(IVector2 position,
Object type)
Get all SimObjects from a specific type at a specific grid position
|
void |
Space2D.setAreaSize(IVector2 areasize)
Set the area size.
|
void |
Grid2D.setAreaSize(IVector2 areasize)
Set the area size.
|
void |
Space2D.setPosition(Object id,
IVector2 pos)
Set the position of an object.
|
void |
Grid2D.setPosition(Object id,
IVector2 pos)
Set the position of an object.
|
Constructor and Description |
---|
ContinuousSpace2D(IVector2 areasize)
Creates a new
ContinuousSpace2D with the default name. |
ContinuousSpace2D(Object name,
IVector2 areasize)
Creates a new
ContinuousSpace2D with a special ID. |
Grid2D(IVector2 areasize)
Creates a new
ContinuousSpace2D with the default name. |
Grid2D(Object name,
IVector2 areasize)
Creates a new
ContinuousSpace2D with a special ID. |
Modifier and Type | Class and Description |
---|---|
class |
SynchronizedVector2Wrapper
Wrapper for synchronized access of a vector2
|
class |
Vector2Double
Implementation of a cartesian 2-vector using double components.
|
class |
Vector2Int
Implementation of a 2-vector using integer values.
|
Modifier and Type | Field and Description |
---|---|
static IVector2 |
Vector2Int.UNIT |
static IVector2 |
Vector2Int.ZERO
Zero vector.
|
static IVector2 |
Vector2Double.ZERO
Zero vector.
|
Modifier and Type | Method and Description |
---|---|
IVector2 |
Vector2Int.add(double scalar)
Adds a scalar to each component of this vector.
|
IVector2 |
Vector2Double.add(double scalar) |
IVector2 |
SynchronizedVector2Wrapper.add(double scalar)
Adds a scalar to each component of this vector.
|
IVector2 |
IVector2.add(double scalar)
Adds a scalar to each component of this vector.
|
IVector2 |
Vector2Int.add(IVector1 scalar)
Adds a scalar to each component of this vector.
|
IVector2 |
Vector2Double.add(IVector1 scalar) |
IVector2 |
SynchronizedVector2Wrapper.add(IVector1 scalar)
Adds a scalar to each component of this vector.
|
IVector2 |
IVector2.add(IVector1 scalar)
Adds a scalar to each component of this vector.
|
IVector2 |
Vector2Int.add(IVector2 vector)
Adds another vector to this vector, adding individual components.
|
IVector2 |
Vector2Double.add(IVector2 vector) |
IVector2 |
SynchronizedVector2Wrapper.add(IVector2 vector)
Adds another vector to this vector, adding individual components.
|
IVector2 |
IVector2.add(IVector2 vector)
Adds another vector to this vector, adding individual components.
|
IVector2 |
Vector2Int.assign(IVector2 vector)
Assigns this vector the values of another vector.
|
IVector2 |
Vector2Double.assign(IVector2 vector)
Assigns this vector the values of another vector.
|
IVector2 |
SynchronizedVector2Wrapper.assign(IVector2 vector)
Assigns this vector the values of another vector.
|
IVector2 |
IVector2.assign(IVector2 vector)
Assigns this vector the values of another vector.
|
IVector2 |
Vector2Int.copy()
Makes a copy of the vector without using the complex clone interface.
|
IVector2 |
Vector2Double.copy() |
IVector2 |
SynchronizedVector2Wrapper.copy()
Makes a copy of the vector without using the complex clone interface.
|
IVector2 |
IVector2.copy()
Makes a copy of the vector without using the complex clone interface.
|
IVector2 |
Vector1Long.createVector2(IVector1 sec)
Create a vector2 from this and another vector.
|
IVector2 |
Vector1Int.createVector2(IVector1 sec)
Create a vector2 from this and another vector.
|
IVector2 |
Vector1Double.createVector2(IVector1 sec)
Create a vector2 from this and another vector.
|
IVector2 |
IVector1.createVector2(IVector1 sec)
Create a vector2 from this and another vector.
|
IVector2 |
Vector2Int.divide(IVector2 vector)
Performs a division on the vector.
|
IVector2 |
Vector2Double.divide(IVector2 vector)
Performs a division on the vector.
|
IVector2 |
SynchronizedVector2Wrapper.divide(IVector2 vector)
Performs a division on the vector.
|
IVector2 |
IVector2.divide(IVector2 vector)
Performs a division on the vector.
|
IVector2 |
Vector3Int.getDirection()
Returns the direction of the vector.
|
IVector2 |
Vector3Double.getDirection() |
IVector2 |
IVector3.getDirection()
Returns the direction (theta) of the vector.
|
static IVector2 |
Vector2Double.getVector2(Double a,
Double b)
Get a vector for two doubles.
|
static IVector2 |
Vector2Int.getVector2(Integer a,
Integer b)
Get a vector for two doubles.
|
IVector2 |
Vector2Int.mod(IVector2 modulus)
Applies a modulo vector.
|
IVector2 |
Vector2Double.mod(IVector2 modulus) |
IVector2 |
SynchronizedVector2Wrapper.mod(IVector2 modulus)
Applies a modulo vector.
|
IVector2 |
IVector2.mod(IVector2 modulus)
Applies a modulo vector.
|
IVector2 |
Vector2Int.multiply(double scalar)
Performs a scalar multiplication (scaling) on the vector.
|
IVector2 |
Vector2Double.multiply(double scalar) |
IVector2 |
SynchronizedVector2Wrapper.multiply(double scalar)
Performs a scalar multiplication (scaling) on the vector.
|
IVector2 |
IVector2.multiply(double scalar)
Performs a scalar multiplication (scaling) on the vector.
|
IVector2 |
Vector2Int.multiply(IVector1 scalar)
Performs a scalar multiplication (scaling) on the vector.
|
IVector2 |
Vector2Double.multiply(IVector1 scalar) |
IVector2 |
SynchronizedVector2Wrapper.multiply(IVector1 scalar)
Performs a scalar multiplication (scaling) on the vector.
|
IVector2 |
IVector2.multiply(IVector1 scalar)
Performs a scalar multiplication (scaling) on the vector.
|
IVector2 |
Vector2Int.multiply(IVector2 vector)
Performs a multiplication on the vector.
|
IVector2 |
Vector2Double.multiply(IVector2 vector) |
IVector2 |
SynchronizedVector2Wrapper.multiply(IVector2 vector)
Performs a multiplication on the vector.
|
IVector2 |
IVector2.multiply(IVector2 vector)
Performs a multiplication on the vector.
|
IVector2 |
Vector2Int.negate()
Negates the vector by negating its components.
|
IVector2 |
Vector2Double.negate() |
IVector2 |
SynchronizedVector2Wrapper.negate()
Negates the vector by negating its components.
|
IVector2 |
IVector2.negate()
Negates the vector by negating its components.
|
IVector2 |
Vector2Int.negateX()
Negates the x-component.
|
IVector2 |
Vector2Double.negateX() |
IVector2 |
SynchronizedVector2Wrapper.negateX()
Negates the x-component.
|
IVector2 |
IVector2.negateX()
Negates the x-component.
|
IVector2 |
Vector2Int.negateY()
Negates the y-component.
|
IVector2 |
Vector2Double.negateY() |
IVector2 |
SynchronizedVector2Wrapper.negateY()
Negates the y-component.
|
IVector2 |
IVector2.negateY()
Negates the y-component.
|
IVector2 |
Vector2Int.normalize()
Converts the vector to a unit vector (normalization)
|
IVector2 |
Vector2Double.normalize() |
IVector2 |
SynchronizedVector2Wrapper.normalize()
Converts the vector to a unit vector (normalization)
|
IVector2 |
IVector2.normalize()
Converts the vector to a unit vector (normalization)
|
IVector2 |
Vector2Int.randomX(IVector1 lower,
IVector1 upper)
Sets the x-component to a random value in the interval [lower,upper]
|
IVector2 |
Vector2Double.randomX(IVector1 lower,
IVector1 upper) |
IVector2 |
SynchronizedVector2Wrapper.randomX(IVector1 lower,
IVector1 upper)
Sets the x-component to a random value in the interval [lower,upper]
|
IVector2 |
IVector2.randomX(IVector1 lower,
IVector1 upper)
Sets the x-component to a random value in the interval [lower,upper]
|
IVector2 |
Vector2Int.randomY(IVector1 lower,
IVector1 upper)
Sets the y-component to a random value in the interval [lower,upper]
|
IVector2 |
Vector2Double.randomY(IVector1 lower,
IVector1 upper) |
IVector2 |
SynchronizedVector2Wrapper.randomY(IVector1 lower,
IVector1 upper)
Sets the y-component to a random value in the interval [lower,upper]
|
IVector2 |
IVector2.randomY(IVector1 lower,
IVector1 upper)
Sets the y-component to a random value in the interval [lower,upper]
|
IVector2 |
Vector2Int.redirect(double angle)
Redirects the vector to a new direction,
maintaining the magnitude.
|
IVector2 |
Vector2Double.redirect(double angle)
Redirects the vector to a new direction,
maintaining the magnitude.
|
IVector2 |
SynchronizedVector2Wrapper.redirect(double angle)
Redirects the vector to a new direction,
maintaining the magnitude.
|
IVector2 |
IVector2.redirect(double angle)
Redirects the vector to a new direction,
maintaining the magnitude.
|
IVector2 |
Vector2Int.subtract(double scalar)
Subtracts a scalar to each component of this vector.
|
IVector2 |
Vector2Double.subtract(double scalar) |
IVector2 |
SynchronizedVector2Wrapper.subtract(double scalar)
Subtracts a scalar to each component of this vector.
|
IVector2 |
IVector2.subtract(double scalar)
Subtracts a scalar to each component of this vector.
|
IVector2 |
Vector2Int.subtract(IVector1 scalar)
Subtracts a scalar to each component of this vector.
|
IVector2 |
Vector2Double.subtract(IVector1 scalar) |
IVector2 |
SynchronizedVector2Wrapper.subtract(IVector1 scalar)
Subtracts a scalar to each component of this vector.
|
IVector2 |
IVector2.subtract(IVector1 scalar)
Subtracts a scalar to each component of this vector.
|
IVector2 |
Vector2Int.subtract(IVector2 vector)
Subtracts another vector to this vector, subtracting individual components.
|
IVector2 |
Vector2Double.subtract(IVector2 vector) |
IVector2 |
SynchronizedVector2Wrapper.subtract(IVector2 vector)
Subtracts another vector to this vector, subtracting individual components.
|
IVector2 |
IVector2.subtract(IVector2 vector)
Subtracts another vector to this vector, subtracting individual components.
|
IVector2 |
Vector2Int.zero()
Sets all vector components to zero.
|
IVector2 |
Vector2Double.zero() |
IVector2 |
SynchronizedVector2Wrapper.zero()
Sets all vector components to zero.
|
IVector2 |
IVector2.zero()
Sets all vector components to zero.
|
Modifier and Type | Method and Description |
---|---|
IVector2 |
Vector2Int.add(IVector2 vector)
Adds another vector to this vector, adding individual components.
|
IVector2 |
Vector2Double.add(IVector2 vector) |
IVector2 |
SynchronizedVector2Wrapper.add(IVector2 vector)
Adds another vector to this vector, adding individual components.
|
IVector2 |
IVector2.add(IVector2 vector)
Adds another vector to this vector, adding individual components.
|
IVector2 |
Vector2Int.assign(IVector2 vector)
Assigns this vector the values of another vector.
|
IVector2 |
Vector2Double.assign(IVector2 vector)
Assigns this vector the values of another vector.
|
IVector2 |
SynchronizedVector2Wrapper.assign(IVector2 vector)
Assigns this vector the values of another vector.
|
IVector2 |
IVector2.assign(IVector2 vector)
Assigns this vector the values of another vector.
|
IVector2 |
Vector2Int.divide(IVector2 vector)
Performs a division on the vector.
|
IVector2 |
Vector2Double.divide(IVector2 vector)
Performs a division on the vector.
|
IVector2 |
SynchronizedVector2Wrapper.divide(IVector2 vector)
Performs a division on the vector.
|
IVector2 |
IVector2.divide(IVector2 vector)
Performs a division on the vector.
|
boolean |
Vector2Int.equals(IVector2 vector)
Compares the vector to another vector.
|
boolean |
Vector2Double.equals(IVector2 vector) |
boolean |
SynchronizedVector2Wrapper.equals(IVector2 vector)
Compares the vector to another vector.
|
boolean |
IVector2.equals(IVector2 vector)
Compares the vector to another vector.
|
IVector1 |
Vector2Int.getDirection(IVector2 vector) |
IVector1 |
Vector2Double.getDirection(IVector2 vector) |
IVector1 |
SynchronizedVector2Wrapper.getDirection(IVector2 vector) |
IVector1 |
IVector2.getDirection(IVector2 vector)
Returns the direction (theta) of the vector.
|
double |
Vector2Int.getDirectionAsDouble(IVector2 vector) |
double |
Vector2Double.getDirectionAsDouble(IVector2 vector) |
double |
SynchronizedVector2Wrapper.getDirectionAsDouble(IVector2 vector) |
double |
IVector2.getDirectionAsDouble(IVector2 vector)
Returns the direction (theta) of the vector as double.
|
float |
Vector2Int.getDirectionAsFloat(IVector2 vector) |
float |
Vector2Double.getDirectionAsFloat(IVector2 vector) |
float |
SynchronizedVector2Wrapper.getDirectionAsFloat(IVector2 vector) |
float |
IVector2.getDirectionAsFloat(IVector2 vector)
Returns the direction (theta) of the vector as float.
|
IVector1 |
Vector2Int.getDistance(IVector2 vector)
Returns the distance to another vector.
|
IVector1 |
Vector2Double.getDistance(IVector2 vector) |
IVector1 |
SynchronizedVector2Wrapper.getDistance(IVector2 vector)
Returns the distance to another vector.
|
IVector1 |
IVector2.getDistance(IVector2 vector)
Returns the distance to another vector.
|
double |
Vector2Int.getInnerProductAsDouble(IVector2 vector) |
double |
Vector2Double.getInnerProductAsDouble(IVector2 vector) |
double |
SynchronizedVector2Wrapper.getInnerProductAsDouble(IVector2 vector) |
double |
IVector2.getInnerProductAsDouble(IVector2 vector)
Returns the length (magnitude) of the vector.
|
IVector2 |
Vector2Int.mod(IVector2 modulus)
Applies a modulo vector.
|
IVector2 |
Vector2Double.mod(IVector2 modulus) |
IVector2 |
SynchronizedVector2Wrapper.mod(IVector2 modulus)
Applies a modulo vector.
|
IVector2 |
IVector2.mod(IVector2 modulus)
Applies a modulo vector.
|
IVector2 |
Vector2Int.multiply(IVector2 vector)
Performs a multiplication on the vector.
|
IVector2 |
Vector2Double.multiply(IVector2 vector) |
IVector2 |
SynchronizedVector2Wrapper.multiply(IVector2 vector)
Performs a multiplication on the vector.
|
IVector2 |
IVector2.multiply(IVector2 vector)
Performs a multiplication on the vector.
|
IVector2 |
Vector2Int.subtract(IVector2 vector)
Subtracts another vector to this vector, subtracting individual components.
|
IVector2 |
Vector2Double.subtract(IVector2 vector) |
IVector2 |
SynchronizedVector2Wrapper.subtract(IVector2 vector)
Subtracts another vector to this vector, subtracting individual components.
|
IVector2 |
IVector2.subtract(IVector2 vector)
Subtracts another vector to this vector, subtracting individual components.
|
Constructor and Description |
---|
SynchronizedVector2Wrapper(IVector2 vector) |
Vector2Double(IVector2 vector)
Creates a new Vector2 with the same value as the input vector.
|
Vector2Int(IVector2 vector)
Creates a new Vector2 with the same value as the input vector.
|
Modifier and Type | Method and Description |
---|---|
IVector2 |
IViewport.getAreaSize()
Gets the maximum displayable size.
|
IVector2 |
AbstractViewport.getAreaSize()
Gets the maximum displayable size.
|
IVector2 |
AbstractViewport3d.getCanvasSize()
Returns the size of the canvas as a vector.
|
IVector2 |
AbstractViewport.getCanvasSize()
Returns the size of the canvas as a vector.
|
IVector2 |
AbstractViewport.getObjectShift()
Gets the shift of all objects.
|
IVector2 |
AbstractViewport3d.getPaddedSize()
Returns the padded size
|
IVector2 |
AbstractViewport.getPaddedSize()
Returns the padded size
|
IVector2 |
AbstractViewport.getPixelSize()
Returns the size of a pixel.
|
IVector2 |
IViewport.getPosition()
Gets the position of the viewport.
|
IVector2 |
AbstractViewport.getPosition()
Gets the position of the viewport.
|
IVector2 |
IViewport.getSize()
Gets the size of the display area.
|
IVector2 |
AbstractViewport.getSize()
Gets the size of the display area.
|
IVector2 |
IViewport.getWorldCoordinates(int pixelX,
int pixelY)
Converts pixel coordinates into world coordinates
|
IVector2 |
AbstractViewport.getWorldCoordinates(int pixelX,
int pixelY)
Converts pixel coordinates into world coordinates
|
Modifier and Type | Method and Description |
---|---|
void |
IViewportListener.leftClicked(IVector2 position)
This method gets called on left clicks.
|
void |
IViewport.setAreaSize(IVector2 areaSize)
Sets the maximum displayable size.
|
void |
AbstractViewport.setAreaSize(IVector2 areaSize)
Sets the maximum displayable size.
|
void |
IViewport.setObjectShift(IVector2 objectShift)
Sets the shift of all objects.
|
void |
AbstractViewport.setObjectShift(IVector2 objectShift)
Sets the shift of all objects.
|
void |
IViewport.setPosition(IVector2 pos)
Sets the position of the bottom left corner of the viewport.
|
void |
AbstractViewport.setPosition(IVector2 pos)
Sets the position of the viewport.
|
void |
IViewport.setSize(IVector2 size)
Sets the viewport size.
|
void |
AbstractViewport.setSize(IVector2 size)
Sets the size of the display area.
|
Modifier and Type | Method and Description |
---|---|
static IVector2 |
Text.getBasePosition(AbstractViewport vp,
IVector2 dcPos,
IVector2 position,
IVector2 canvasSize,
boolean invX,
boolean invY) |
Modifier and Type | Method and Description |
---|---|
static IVector2 |
Text.getBasePosition(AbstractViewport vp,
IVector2 dcPos,
IVector2 position,
IVector2 canvasSize,
boolean invX,
boolean invY) |
static float |
Text.getBasicFontScale(IVector2 canvasSize,
IVector2 areaSize,
IVector2 size) |
void |
AbstractVisual2D.setPosition(IVector2 pos)
Sets the position of the visual to a fixed position.
|
void |
AbstractVisual2D.setSize(IVector2 size)
Sets the size (scale) of the visual to a fixed size.
|
Modifier and Type | Method and Description |
---|---|
void |
TiledLayerJ2DRenderer.draw(IPerspective persp,
Layer layer,
IVector2 areaSize,
ViewportJ2D vp)
Draws the layer.
|
void |
ILayerJ2DRenderer.draw(IPerspective persp,
Layer layer,
IVector2 areaSize,
ViewportJ2D vp)
Draws the layer.
|
void |
GridLayerJ2DRenderer.draw(IPerspective persp,
Layer layer,
IVector2 areaSize,
ViewportJ2D vp)
Draws the layer.
|
void |
ColorLayerJ2DRenderer.draw(IPerspective persp,
Layer layer,
IVector2 areaSize,
ViewportJ2D vp)
Draws the layer.
|
Modifier and Type | Method and Description |
---|---|
IVector2 |
GridLayer.getGridSize() |
IVector2 |
TiledLayer.getInvTileSize()
Get the inverted tile size.
|
IVector2 |
TiledLayer.getTileSize()
The tile size.
|
Constructor and Description |
---|
GridLayer(IVector2 gridSize,
Object c)
Creates a new gridlayer.
|
TiledLayer(IVector2 tileSize,
Object color,
String texturePath)
Creates a new TiledLayer.
|
Modifier and Type | Method and Description |
---|---|
IVector2 |
AbstractInteractionPlugin.getWorldCoordinates(Point p) |
Modifier and Type | Method and Description |
---|---|
IVector2 |
Perspective2D.getObjectShift()
Gets the object shift.
|
Modifier and Type | Method and Description |
---|---|
void |
Perspective2D.setObjectShift(IVector2 shift)
Sets the object shift.
|
void |
Perspective2D.shiftPosition(IVector2 shift)
Shifts the viewport position.
|
Copyright © 2013. All Rights Reserved.