Uses of Class
inra.ijpb.geometry.Vector2D
Package | Description |
---|---|
inra.ijpb.geometry |
Utility functions for geometric computing applied to image analysis.
|
-
Uses of Vector2D in inra.ijpb.geometry
Methods in inra.ijpb.geometry that return Vector2D Modifier and Type Method Description Vector2D
StraightLine2D. getDirection()
Vector2D
Vector2D. minus(Vector2D v)
Returns the result of the subtraction of this vector with another vector.Vector2D
Vector2D. normalize()
Returns a normalized vector with same direction as this vectorVector2D
Vector2D. plus(Vector2D v)
Returns the result of the addition of this vector with another vector.Vector2D
Vector2D. times(double k)
Returns the result of the multiplication of this vector with a scalar value.Methods in inra.ijpb.geometry with parameters of type Vector2D Modifier and Type Method Description boolean
Vector2D. almostEquals(Vector2D v, double eps)
Checks if this vector is close to the given vector, by checking each coordinate using the given threshold.static double
Vector2D. angle(Vector2D v1, Vector2D v2)
Computes the angle between two vectors.static double
Vector2D. crossProduct(Vector2D v1, Vector2D v2)
Computes the cross product of the two vectors.static double
Vector2D. dotProduct(Vector2D v1, Vector2D v2)
Computes the dot product of two vectors, defined by:Vector2D
Vector2D. minus(Vector2D v)
Returns the result of the subtraction of this vector with another vector.Vector2D
Vector2D. plus(Vector2D v)
Returns the result of the addition of this vector with another vector.Constructors in inra.ijpb.geometry with parameters of type Vector2D Constructor Description StraightLine2D(java.awt.geom.Point2D origin, Vector2D direction)
Creates a new straight line from an origin and a direction vector.