Package | Description |
---|---|
org.eclipse.gef4.geometry.euclidean |
This package provides core abstractions to support calculations within
2-dimensional Euclidean space.
|
Modifier and Type | Field and Description |
---|---|
Vector |
Straight.direction
|
static Vector |
Vector.NULL
The (0,0) vector.
|
Vector |
Straight.position
|
Modifier and Type | Method and Description |
---|---|
Vector |
Vector.clone()
|
Vector |
Vector.getAdded(Vector other)
|
Vector |
Vector.getAveraged(Vector other)
|
Vector |
Vector.getCopy()
Returns a copy of this
Vector object. |
Vector |
Vector.getDivided(double factor)
|
Vector |
Straight.getIntersection(Straight other)
|
Vector |
Vector.getMultiplied(double factor)
|
Vector |
Vector.getNormalized()
|
Vector |
Vector.getOrthogonalComplement()
Returns the orthogonal complement of this
Vector , which is
defined to be (-y, x). |
Vector |
Straight.getPositionVectorAt(double parameter)
|
Vector |
Straight.getProjection(Vector vector)
|
Vector |
Vector.getRotatedCCW(Angle angle)
|
Vector |
Vector.getRotatedCW(Angle angle)
|
Vector |
Vector.getSubtracted(Vector other)
|
Vector |
Vector.rotateCCW(Angle angle)
|
Vector |
Vector.rotateCW(Angle angle)
|
Modifier and Type | Method and Description |
---|---|
boolean |
Straight.contains(Vector vector)
|
boolean |
Straight.containsWithinSegment(Vector segmentStart,
Vector segmentEnd,
Vector vector)
|
Vector |
Vector.getAdded(Vector other)
|
Angle |
Vector.getAngle(Vector other)
|
Angle |
Vector.getAngleCCW(Vector other)
|
Angle |
Vector.getAngleCW(Vector other)
|
Vector |
Vector.getAveraged(Vector other)
|
double |
Vector.getCrossProduct(Vector other)
|
double |
Vector.getDissimilarity(Vector other)
|
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)
|
double |
Straight.getParameterAt(Vector vp)
|
Vector |
Straight.getProjection(Vector vector)
|
double |
Straight.getSignedDistanceCCW(Vector vector)
|
double |
Straight.getSignedDistanceCW(Vector vector)
|
double |
Vector.getSimilarity(Vector other)
Calculates the similarity of this
Vector and the provided one. |
Vector |
Vector.getSubtracted(Vector other)
|
boolean |
Straight.intersectsWithinSegment(Vector segmentStart,
Vector segmentEnd,
Straight other)
|
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. |
Constructor and Description |
---|
Straight(Vector position,
Vector direction)
|
Vector(Vector start,
Vector end)
|
Copyright (c) 2014 itemis AG, and others. All rights reserved.