An hyperplane in 1D is a simple point, its orientation being a boolean.
Instances of this class are guaranteed to be immutable.
| Modifier and Type | Field and Description |
|---|---|
| private static final double | DEFAULT_TOLERANCE
Default value for tolerance. |
| private boolean | direct
Orientation. |
| private Vector1D | location
Vector location. |
| private final double | tolerance
Tolerance below which points are considered to belong to the hyperplane. |
| Access | Constructor and Description |
|---|---|
| public | OrientedPoint(final Vector1D
location of the hyperplane location, final boolean if true, the plus side of the hyperplane is towards
abscissas greater than direct, final double locationtolerance below which points are considered to belong to the hyperplane tolerance)Simple constructor. |
| public | OrientedPoint(final Vector1D
location of the hyperplane location, final boolean if true, the plus side of the hyperplane is towards
abscissas greater than direct)location
Deprecated
as of 3.3, replaced with
OrientedPoint(Vector1D, boolean, double)
Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public OrientedPoint | Returns: the instance itselfImplements org. Copy the instance. |
| public Vector1D | |
| public double | Returns: offset of the vectorvector to check vector)Get the offset (oriented distance) of a vector. |
| public double | getOffset(final Point<Euclidean1D>
point to check point)Implements org. Get the offset (oriented distance) of a point. |
| public double | getTolerance()
Implements org. Get the tolerance below which points are considered to belong to the hyperplane. |
| public boolean | Returns: true if the plus side of the hyperplane is towards abscissae greater than hyperplane locationCheck if the hyperplane orientation is direct. |
| public Point | project(Point<Euclidean1D>
point to project point)Implements org. Project a point to the hyperplane. |
| public void | |
| public boolean | sameOrientationAs(final Hyperplane<Euclidean1D>
other hyperplane to check against the instance other)Implements org. Check if the instance has the same orientation as another hyperplane. |
| public SubOrientedPoint | Returns: a dummy sub hyperplaneImplements org. Build a region covering the whole hyperplane. |
| public IntervalsSet | Returns: a region containing the instance (really anIntervalsSet instance)Implements org. Build a region covering the whole space. |
| DEFAULT_TOLERANCE | back to summary |
|---|---|
| private static final double DEFAULT_TOLERANCE Default value for tolerance. | |
| direct | back to summary |
|---|---|
| private boolean direct Orientation. | |
| location | back to summary |
|---|---|
| private Vector1D location Vector location. | |
| tolerance | back to summary |
|---|---|
| private final double tolerance Tolerance below which points are considered to belong to the hyperplane. | |
| OrientedPoint | back to summary |
|---|---|
| public OrientedPoint(final Vector1D location, final boolean direct, final double tolerance) Simple constructor.
| |
| OrientedPoint | back to summary |
|---|---|
| public OrientedPoint(final Vector1D location, final boolean direct)
Deprecated as of 3.3, replaced with Simple constructor.
| |
| copySelf | back to summary |
|---|---|
| public OrientedPoint copySelf() Implements org. Copy the instance. Since instances are immutable, this method directly returns the instance.
| |
| getLocation | back to summary |
|---|---|
| public Vector1D getLocation() Get the hyperplane location on the real line.
| |
| getOffset | back to summary |
|---|---|
| public double getOffset(Vector<Euclidean1D> vector) Get the offset (oriented distance) of a vector.
| |
| getOffset | back to summary |
|---|---|
| public double getOffset(final Point<Euclidean1D> point) Implements org. Doc from org. Get the offset (oriented distance) of a point. The offset is 0 if the point is on the underlying hyperplane, it is positive if the point is on one particular side of the hyperplane, and it is negative if the point is on the other side, according to the hyperplane natural orientation.
| |
| getTolerance | back to summary |
|---|---|
| public double getTolerance() Implements org. Doc from org. Get the tolerance below which points are considered to belong to the hyperplane.
| |
| isDirect | back to summary |
|---|---|
| public boolean isDirect() Check if the hyperplane orientation is direct.
| |
| project | back to summary |
|---|---|
| public Point Implements org. Doc from org. Project a point to the hyperplane.
| |
| revertSelf | back to summary |
|---|---|
| public void revertSelf() Revert the instance. | |
| sameOrientationAs | back to summary |
|---|---|
| public boolean sameOrientationAs(final Hyperplane<Euclidean1D> other) Implements org. Doc from org. Check if the instance has the same orientation as another hyperplane. This method is expected to be called on parallel hyperplanes. The method should not re-check for parallelism, only for orientation, typically by testing something like the sign of the dot-products of normals.
| |
| wholeHyperplane | back to summary |
|---|---|
| public SubOrientedPoint wholeHyperplane() Implements org. Build a region covering the whole hyperplane. Since this class represent zero dimension spaces which does
not have lower dimension sub-spaces, this method returns a dummy
implementation of a
| |
| wholeSpace | back to summary |
|---|---|
| public IntervalsSet wholeSpace() Implements org. Build a region covering the whole space.
| |