| Package | Description |
|---|---|
| org.apache.commons.math4.geometry.euclidean.oned |
This package provides basic 1D geometry components.
|
| org.apache.commons.math4.geometry.euclidean.threed |
This package provides basic 3D geometry components.
|
| org.apache.commons.math4.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
| Modifier and Type | Field | Description |
|---|---|---|
static Cartesian1D |
Cartesian1D.NaN |
A vector with all coordinates set to NaN.
|
static Cartesian1D |
Cartesian1D.NEGATIVE_INFINITY |
A vector with all coordinates set to negative infinity.
|
static Cartesian1D |
Cartesian1D.ONE |
Unit (coordinates: 1).
|
static Cartesian1D |
Cartesian1D.POSITIVE_INFINITY |
A vector with all coordinates set to positive infinity.
|
static Cartesian1D |
Cartesian1D.ZERO |
Origin (coordinates: 0).
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian1D |
Cartesian1D.add(double factor,
Vector<Euclidean1D> v) |
Add a scaled vector to the instance.
|
Cartesian1D |
Cartesian1D.add(Vector<Euclidean1D> v) |
Add a vector to the instance.
|
Cartesian1D |
OrientedPoint.getLocation() |
Get the hyperplane location on the real line.
|
Cartesian1D |
Cartesian1D.getZero() |
Get the null vector of the vectorial space or origin point of the affine space.
|
Cartesian1D |
Cartesian1D.negate() |
Get the opposite of the instance.
|
Cartesian1D |
Cartesian1D.normalize() |
Get a normalized vector aligned with the instance.
|
Cartesian1D |
Cartesian1D.scalarMultiply(double a) |
Multiply the instance by a scalar.
|
Cartesian1D |
Cartesian1D.subtract(double factor,
Vector<Euclidean1D> v) |
Subtract a scaled vector from the instance.
|
Cartesian1D |
Cartesian1D.subtract(Vector<Euclidean1D> p) |
Subtract a vector from the instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
Cartesian1D.distance(Cartesian1D c) |
Compute the distance between the instance and other coordinates.
|
static double |
Cartesian1D.distance(Cartesian1D p1,
Cartesian1D p2) |
Compute the distance between two points according to the L2 norm.
|
static double |
Cartesian1D.distanceInf(Cartesian1D p1,
Cartesian1D p2) |
Compute the distance between two points according to the L∞ norm.
|
static double |
Cartesian1D.distanceSq(Cartesian1D p1,
Cartesian1D p2) |
Compute the square of the distance between two points.
|
| Constructor | Description |
|---|---|
Cartesian1D(double a,
Cartesian1D u) |
Multiplicative constructor
Build a vector from another one and a scale factor.
|
Cartesian1D(double a1,
Cartesian1D u1,
double a2,
Cartesian1D u2) |
Linear constructor
Build a vector from two other ones and corresponding scale factors.
|
Cartesian1D(double a1,
Cartesian1D u1,
double a2,
Cartesian1D u2,
double a3,
Cartesian1D u3) |
Linear constructor
Build a vector from three other ones and corresponding scale factors.
|
Cartesian1D(double a1,
Cartesian1D u1,
double a2,
Cartesian1D u2,
double a3,
Cartesian1D u3,
double a4,
Cartesian1D u4) |
Linear constructor
Build a vector from four other ones and corresponding scale factors.
|
OrientedPoint(Cartesian1D location,
boolean direct,
double tolerance) |
Simple constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian1D |
Line.toSubSpace(Cartesian3D point) |
Transform a space point into a sub-space point.
|
Cartesian1D |
Line.toSubSpace(Point<Euclidean3D> point) |
Transform a space point into a sub-space point.
|
Cartesian1D |
Line.toSubSpace(Vector<Euclidean3D> vector) |
Transform a space point into a sub-space point.
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian3D |
Line.toSpace(Cartesian1D point) |
Transform a sub-space point into a space point.
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian1D |
Line.toSubSpace(Cartesian2D cartesian) |
Transform a space point into a sub-space point.
|
Cartesian1D |
Line.toSubSpace(Point<Euclidean2D> point) |
Transform a space point into a sub-space point.
|
Cartesian1D |
Line.toSubSpace(Vector<Euclidean2D> vector) |
Transform a space point into a sub-space point.
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian2D |
Line.getPointAt(Cartesian1D abscissa,
double offset) |
Get one point from the plane.
|
Cartesian2D |
Line.toSpace(Cartesian1D cartesian) |
Transform a sub-space point into a space point.
|
Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.