Uses of Class
org.eclipse.draw2d.geometry.Vector
Packages that use Vector
Package
Description
Types representing or manipulating geometric values, such as Points, Dimensions, etc.
-
Uses of Vector in org.eclipse.draw2d.geometry
Fields in org.eclipse.draw2d.geometry declared as VectorModifier and TypeFieldDescriptionStraight.direction
direction vector of this straightStraight.position
position vector of this straightMethods in org.eclipse.draw2d.geometry that return VectorModifier and TypeMethodDescriptionCreates a new Vector which is the sum of this Vector with another.Vector.getAveraged
(Vector other) Creates a new Vector which represents the average of this Vector with another.Vector.getDivided
(double factor) Creates a new Vector which represents this Vector divided by the provided scalar factor.Straight.getIntersection
(Straight other) Computes the intersection point of this Straight and the provided one, if it exists.Vector.getMultiplied
(double factor) Creates a new Vector which represents this Vector multiplied by the provided scalar factor.Vector.getOrthogonalComplement()
Returns the orthogonal complement of this Vector, which is defined to be (-y, x).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.getSubtracted
(Vector other) Creates a new Vector which is the difference of this Vector with the provided Vector.Methods in org.eclipse.draw2d.geometry with parameters of type VectorModifier and TypeMethodDescriptionboolean
Calculates whether the point indicated by the provided Vector is a point on this Straight.boolean
Straight.containsWithinSegment
(Vector segmentStart, Vector segmentEnd, Vector vector) Calculates whether the point indicated by the provided Vector is a point on the straight segment between the given start and end points.Creates a new Vector which is the sum of this Vector with another.double
Returns the angle (in degrees) between this Vector and the provided Vector.Vector.getAveraged
(Vector other) Creates a new Vector which represents the average of this Vector with another.double
Vector.getCrossProduct
(Vector other) Calculates the cross product of this Vector with another.double
Vector.getDissimilarity
(Vector other) Calculates the magnitude of the cross product of this Vector with another.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.double
Vector.getDotProduct
(Vector other) Calculates the dot product of this Vector with another.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
Vector.getSimilarity
(Vector other) Calculates the similarity of this Vector with another.Vector.getSubtracted
(Vector other) Creates a new Vector which is the difference of this Vector with the provided Vector.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 segmentStart and segmentEnd.boolean
Vector.isOrthogonalTo
(Vector other) Calculates whether this Vector and the provided one are orthogonal to each other.boolean
Vector.isParallelTo
(Vector other) Calculates whether this Vector and the provided one are parallel to each other.Constructors in org.eclipse.draw2d.geometry with parameters of type Vector