# Uses of Class
org.eclipse.gef.geometry.euclidean.Vector

Packages that use Vector
Package
Description
org.eclipse.gef.geometry.euclidean
This package provides core abstractions to support calculations within 2-dimensional Euclidean space.

## Uses of Vector in org.eclipse.gef.geometry.euclidean

Fields in org.eclipse.gef.geometry.euclidean declared as Vector
Modifier and Type
Field
Description
`Vector`
Straight.`direction`
The direction `Vector` of this `Straight`.
`static final Vector`
Vector.`NULL`
The (0,0) vector.
`Vector`
Straight.`position`
The position `Vector` of this `Straight`.
Methods in org.eclipse.gef.geometry.euclidean that return Vector
Modifier and Type
Method
Description
`Vector`
Vector.`clone()`
Clones the given `Vector` using `getCopy()`.
`Vector`
Vector.`getAdded(Vector other)`
Returns a new `Vector` that represents the sum of this `Vector` and the given other `Vector`.
`Vector`
Vector.`getAveraged(Vector other)`
Creates a new `Vector` which represents the average of this `Vector` with the provided one.
`Vector`
Vector.`getCopy()`
Returns a copy of this `Vector` object.
`Vector`
Vector.`getDivided(double factor)`
Creates a new `Vector` which represents this `Vector` divided by the provided scalar value.
`Vector`
Straight.`getIntersection(Straight other)`
Computes and returns the position `Vector` of the intersection of this `Straight` and the provided one.
`Vector`
Vector.`getMultiplied(double factor)`
Creates a new `Vector` which represents this `Vector` multiplied by the provided scalar value.
`Vector`
Vector.`getNormalized()`
Creates a new `Vector` that has the same direction as this `Vector` and a length of 1.
`Vector`
Vector.`getOrthogonalComplement()`
Returns the orthogonal complement of this `Vector`, which is defined to be (-y, x).
`Vector`
Straight.`getPositionVectorAt(double parameter)`
Returns the `Vector` on this `Straight` at the given parameter value.
`Vector`
Straight.`getProjection(Vector vector)`
Returns the projection of the given `Vector` onto this `Straight`, which is the `Point` on this `Straight` with the minimal distance to the `Point`, denoted by the provided `Vector`.
`Vector`
Vector.`getRotatedCCW(Angle angle)`
Returns a new `Vector` which corresponds to this `Vector` after rotating it counter-clockwise (CCW) by the given `Angle`.
`Vector`
Vector.`getRotatedCW(Angle angle)`
Returns a new `Vector` which corresponds to this `Vector` after rotating it clockwise (CW) by the given `Angle`.
`Vector`
Vector.`getSubtracted(Vector other)`
Returns a new `Vector` that represents the difference of this `Vector` and the provided one.
`Vector`
Vector.`rotateCCW(Angle angle)`
Rotates this `Vector` counter-clockwise (CCW) by the given `Angle`.
`Vector`
Vector.`rotateCW(Angle angle)`
Rotates this `Vector` clockwise (CW) by the given `Angle`.
Methods in org.eclipse.gef.geometry.euclidean with parameters of type Vector
Modifier and Type
Method
Description
`boolean`
Straight.`contains(Vector vector)`
Checks if the `Point` indicated by the provided `Vector` is a `Point` on this `Straight`.
`boolean`
Straight.`containsWithinSegment(Vector segmentStart, Vector segmentEnd, Vector vector)`
Checks if the `Point` indicated by the provided `Vector` is a `Point` on the `Straight` segment between the given start and end `Point`s indicated by their corresponding position `Vector`s.
`Vector`
Vector.`getAdded(Vector other)`
Returns a new `Vector` that represents the sum of this `Vector` and the given other `Vector`.
`Angle`
Vector.`getAngle(Vector other)`
Returns the smallest `Angle` between this `Vector` and the provided one.
`Angle`
Vector.`getAngleCCW(Vector other)`
Returns the counter-clockwise (CCW) `Angle` between this `Vector` and the provided one.
`Angle`
Vector.`getAngleCW(Vector other)`
Returns the clockwise (CW) `Angle` between this `Vector` and the provided one.
`Vector`
Vector.`getAveraged(Vector other)`
Creates a new `Vector` which represents the average of this `Vector` with the provided one.
`double`
Vector.`getCrossProduct(Vector other)`
Calculates the cross product of this `Vector` (lhs) and the given other `Vector` (rhs).
`double`
Vector.`getDissimilarity(Vector other)`
Calculates the magnitude of the cross product of this `Vector` with the given other `Vector`.
`double`
Straight.`getDistance(Vector vector)`
Returns the distance of the provided `Vector` to this `Straight`, which is the distance between the provided `Vector` and its projection onto this `Straight` (see `Straight.getProjection(Vector)`).
`double`
Vector.`getDotProduct(Vector other)`
Calculates the dot product of this `Vector` and the given other `Vector`.
`double`
Straight.`getParameterAt(Vector vp)`
Returns this `Straight`'s parameter value for the given `Vector`.
`Vector`
Straight.`getProjection(Vector vector)`
Returns the projection of the given `Vector` onto this `Straight`, which is the `Point` on this `Straight` with the minimal distance to the `Point`, denoted by the provided `Vector`.
`double`
Straight.`getSignedDistanceCCW(Vector vector)`
Returns the counter-clockwise (CCW) signed distance of the given `Vector` to this `Straight`.
`double`
Straight.`getSignedDistanceCW(Vector vector)`
Returns the clockwise (CW) signed distance of the given `Vector` to this `Straight`.
`double`
Vector.`getSimilarity(Vector other)`
Calculates the similarity of this `Vector` and the provided one.
`Vector`
Vector.`getSubtracted(Vector other)`
Returns a new `Vector` that represents the difference of this `Vector` and the provided one.
`boolean`
Straight.`intersectsWithinSegment(Vector segmentStart, Vector segmentEnd, Straight other)`
Checks whether this `Straight` and the provided one have an intersection `Point` which is inside the specified segment between the segmentStart and segmentEnd `Vector`s.
`boolean`
Vector.`isOrthogonalTo(Vector other)`
Checks if this `Vector` and the provided one are orthogonal to each other.
`boolean`
Vector.`isParallelTo(Vector other)`
Checks if this `Vector` and the provided one are parallel to each other.
Constructors in org.eclipse.gef.geometry.euclidean with parameters of type Vector
Modifier
Constructor
Description
``
`Straight(Vector position, Vector direction)`
Constructs a new `Straight` with the given position `Vector` and direction `Vector`.
``
`Vector(Vector start, Vector end)`
Constructs a `Vector` representing the difference between two provided `Vector`s.