|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Vector2D | |
|---|---|
| com.kuka.nav.geometry | This package contains interfaces and classes for the KUKA scene graph and geometry model in the 2D use case. |
| Uses of Vector2D in com.kuka.nav.geometry |
|---|
| Fields in com.kuka.nav.geometry declared as Vector2D | |
|---|---|
static Vector2D |
Vector2D.UNIT_X
Immutable Vector2D instance representing the X unit vector. |
static Vector2D |
Vector2D.UNIT_Y
Immutable Vector2D instance representing the Y unit vector. |
static Vector2D |
Vector2D.ZERO
Immutable Vector2D instance representing a zero vector. |
| Methods in com.kuka.nav.geometry that return Vector2D | |
|---|---|
Vector2D |
Vector2D.add(Vector2D other)
Adds the given vector to the values of this vector. |
Vector2D |
Vector2D.crossProduct(Vector2D other)
Returns the vector that is the cross product between this vector and the other vector. |
Vector2D |
Vector2D.invert()
Returns an inverted vector, i.e. a vector with element wise negated values. |
Vector2D |
Vector2D.multiply(double factor)
Returns a vector that has the values of this vector scaled by the given factor. |
Vector2D |
Vector2D.normalize()
Returns a vector that points in the same direction as this vector, scaled to unit length (1). |
static Vector2D |
Vector2D.of(double x,
double y)
Returns an immutable Vector2D instance constructed from its
Cartesian X and Y elements. |
Vector2D |
Point2D.subtract(Point2D other)
Subtracts the given point from this point, resulting in the connecting vector pointing from the other point to this point. |
Vector2D |
Vector2D.subtract(Vector2D other)
Subtracts the given vector from the values of this vector. |
Vector2D |
Point2D.toVector()
Returns this point as a vector, which is the vector pointing from the origin to this point. |
Vector2D |
Vector2D.withX(double value)
Returns a new instance (copy) of the vector, with the x element
replaced by the new value. |
Vector2D |
Vector2D.withY(double value)
Returns a new instance (copy) of the vector, with the y element
replaced by the new value. |
| Methods in com.kuka.nav.geometry with parameters of type Vector2D | |
|---|---|
Vector2D |
Vector2D.add(Vector2D other)
Adds the given vector to the values of this vector. |
Point2D |
Point2D.add(Vector2D other)
Adds the given vector to this point, resulting in a new point. |
double |
Vector2D.angleRad(Vector2D other)
Calculates the smallest angle between this and the other vector. |
boolean |
Vector2D.approxEquals(Vector2D p,
double epsilon)
Compares for equality within an epsilon envelope. |
int |
Vector2D.compareTo(Vector2D o)
|
Vector2D |
Vector2D.crossProduct(Vector2D other)
Returns the vector that is the cross product between this vector and the other vector. |
double |
Vector2D.dotProduct(Vector2D other)
Returns the dot (inner/scalar) product between this vector and the other vector. |
static Point2D |
Point2D.of(Vector2D vector)
Returns an immutable Point2D instance from a vector that points
from the origin to the new point. |
Vector2D |
Vector2D.subtract(Vector2D other)
Subtracts the given vector from the values of this vector. |
| Constructors in com.kuka.nav.geometry with parameters of type Vector2D | |
|---|---|
Point2D(Vector2D vector)
Returns a new instance of this class. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||