| Package | Description |
|---|---|
| inra.ijpb.geometry |
Utility functions for geometric computing applied to image analysis.
|
| Modifier and Type | Method and 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 vector
|
Vector2D |
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.
|
| Modifier and Type | Method and 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.
|
| Constructor and Description |
|---|
StraightLine2D(Point2D origin,
Vector2D direction)
Creates a new straight line from an origin and a direction vector.
|
Copyright © 2014–2024 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.