Uses of Class
org.evoludo.geom.Vector2D

Packages that use Vector2D
Package
Description
The geometric utilities for working with shapes and spatial relationships.
The toolkit to explore interactive evolutionary models.
  • Uses of Vector2D in org.evoludo.geom

    Methods in org.evoludo.geom that return Vector2D
    Modifier and Type
    Method
    Description
    Vector2D.add(double dx, double dy)
    Shift the coordinates of this 2D vector dx to the right and dy upwards.
    Vector2D.add(Point2D a, Point2D b)
    Add the 2D vectors a and b and store the result in this vector.
    Vector2D.add(Vector2D add)
    Add the 2D vector add to this vector.
    Vector2D.negate()
    Negates the coordinates of 2D vector v to obtain -v.
    Vector2D.normalize()
    Normalizes the 2D vector v such that its length is |v|=1 while preserving the direction.
    Vector2D.normalize(double l)
    Normalizes the 2D vector v such that its length is l, i.e.
    Vector2D.scaleAdd(double s, Vector2D a)
    Scales the 2D vector by the scalar factor s and adds the 2D vector a to obtain s*v+a.
    Vector2D.set(Point2D from, Point2D to)
    Set the 2D vector to pointing from from to to.
    Vector2D.sub(double dx, double dy)
    Subtract dx and dy from coordinates, i.e.
    Vector2D.sub(Vector2D sub)
    Subtract the 2D vector sub from this vector.
    Vector2D.sub(Vector2D a, Vector2D b)
    Subtract 2D vectors b from a and store result in this 2D vector.
    Methods in org.evoludo.geom with parameters of type Vector2D
    Modifier and Type
    Method
    Description
    Vector2D.add(Vector2D add)
    Add the 2D vector add to this vector.
    double
    Vector2D.dot(Vector2D d)
    Calculate the dot product of 2D vector d and this vector.
    Vector2D.scaleAdd(double s, Vector2D a)
    Scales the 2D vector by the scalar factor s and adds the 2D vector a to obtain s*v+a.
    void
    Line2D.set(Point2D point, Vector2D direction)
    Set the line to pass through point p in the direction of vector v.
    Vector2D.sub(Vector2D sub)
    Subtract the 2D vector sub from this vector.
    Vector2D.sub(Vector2D a, Vector2D b)
    Subtract 2D vectors b from a and store result in this 2D vector.
  • Uses of Vector2D in org.evoludo.simulator

    Fields in org.evoludo.simulator declared as Vector2D
    Modifier and Type
    Field
    Description
    private final Vector2D
    Network2D.attraction
    Helper variable to store intermediate results when considering the potential energy resulting from the attraction between neighbouring nodes.
    private final Vector2D
    Network2D.repulsion
    Helper variable to store intermediate results when considering the potential energy resulting from the repulsion between nodes.
    private final Vector2D
    Network2D.vec
    Temporary storage for the directional vector connecting two nodes.