Uses of Class
org.apache.commons.geometry.euclidean.oned.Vector1D.Unit
Packages that use Vector1D.Unit
Package
Description
This package provides basic 1D geometry components.
-
Uses of Vector1D.Unit in org.apache.commons.geometry.euclidean.oned
Fields in org.apache.commons.geometry.euclidean.oned declared as Vector1D.UnitModifier and TypeFieldDescriptionstatic final Vector1D.Unit
Vector1D.Unit.MINUS
Negation of unit vector (coordinates: -1).static final Vector1D.Unit
Vector1D.Unit.PLUS
Unit vector (coordinates: 1).Methods in org.apache.commons.geometry.euclidean.oned that return Vector1D.UnitModifier and TypeMethodDescriptionAffineTransformMatrix1D.applyDirection
(Vector1D vec) Apply this transform to the given vector, ignoring translations and normalizing the result.Vector1D.directionTo
(Vector1D v) Return the unit vector representing the direction of displacement from this vector to the given vector.static Vector1D.Unit
Vector1D.Unit.from
(double x) Create a normalized vector.static Vector1D.Unit
Create a normalized vector.OrientedPoint.getDirection()
Get the direction of the hyperplane's plus side.Vector1D.normalize()
Get a normalized vector aligned with the instance.Vector1D.Unit.normalize()
Get a normalized vector aligned with the instance.Vector1D.normalizeOrNull()
Attempt to compute a normalized vector aligned with the instance, returning null if such a vector cannot be computed.Vector1D.Unit.normalizeOrNull()
Attempt to compute a normalized vector aligned with the instance, returning null if such a vector cannot be computed.private static Vector1D.Unit
Vector1D.Unit.tryCreateNormalized
(double x, boolean throwOnFailure) Attempt to create a normalized vector from the given coordinate values.