Package | Description |
---|---|
org.apache.commons.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
Modifier and Type | Field and Description |
---|---|
static Vector2D.Unit |
Vector2D.Unit.MINUS_X
Negation of unit vector (coordinates: -1, 0).
|
static Vector2D.Unit |
Vector2D.Unit.MINUS_Y
Negation of unit vector (coordinates: 0, -1).
|
static Vector2D.Unit |
Vector2D.Unit.PLUS_X
Unit vector (coordinates: 1, 0).
|
static Vector2D.Unit |
Vector2D.Unit.PLUS_Y
Unit vector (coordinates: 0, 1).
|
Modifier and Type | Method and Description |
---|---|
Vector2D.Unit |
AffineTransformMatrix2D.applyDirection(Vector2D vec)
Apply this transform to the given vector, ignoring translations and normalizing the
result.
|
Vector2D.Unit |
Vector2D.directionTo(Vector2D v)
Return the unit vector representing the direction of displacement from this
vector to the given vector.
|
static Vector2D.Unit |
Vector2D.Unit.from(double x,
double y)
Create a normalized vector.
|
static Vector2D.Unit |
Vector2D.Unit.from(Vector2D v)
Create a normalized vector.
|
Vector2D.Unit |
Line.getDirection()
Get the direction of the line.
|
Vector2D.Unit |
Vector2D.Unit.negate() |
Vector2D.Unit |
Vector2D.normalize() |
Vector2D.Unit |
Vector2D.Unit.normalize() |
Vector2D.Unit |
Vector2D.normalizeOrNull() |
Vector2D.Unit |
Vector2D.Unit.normalizeOrNull() |
Vector2D.Unit |
Vector2D.orthogonal()
Get a unit vector orthogonal to the instance.
|
Vector2D.Unit |
Vector2D.Unit.orthogonal()
Get a unit vector orthogonal to the instance.
|
Vector2D.Unit |
Vector2D.orthogonal(Vector2D dir)
Get a unit vector orthogonal to the current vector and pointing in the direction
of
dir . |
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.