public final class OrientedPoints extends Object
OrientedPoint
instances.Modifier and Type | Method and Description |
---|---|
static OrientedPoint |
createNegativeFacing(double location,
Precision.DoubleEquivalence precision)
Create a new instance at the given location, oriented so that it is facing negative infinity.
|
static OrientedPoint |
createNegativeFacing(Vector1D point,
Precision.DoubleEquivalence precision)
Create a new instance at the given point, oriented so that it is facing negative infinity.
|
static OrientedPoint |
createPositiveFacing(double location,
Precision.DoubleEquivalence precision)
Create a new instance at the given location, oriented so that it is facing positive infinity.
|
static OrientedPoint |
createPositiveFacing(Vector1D point,
Precision.DoubleEquivalence precision)
Create a new instance at the given point, oriented so that it is facing positive infinity.
|
static OrientedPoint |
fromLocationAndDirection(double location,
boolean positiveFacing,
Precision.DoubleEquivalence precision)
Create a new instance from the given location and boolean direction value.
|
static OrientedPoint |
fromPointAndDirection(Vector1D point,
boolean positiveFacing,
Precision.DoubleEquivalence precision)
Create a new instance from the given point and boolean direction value.
|
static OrientedPoint |
fromPointAndDirection(Vector1D point,
Vector1D direction,
Precision.DoubleEquivalence precision)
Create a new instance from the given point and direction.
|
public static OrientedPoint fromLocationAndDirection(double location, boolean positiveFacing, Precision.DoubleEquivalence precision)
location
- the location of the hyperplanepositiveFacing
- if true, the hyperplane will face toward positive infinity;
otherwise, it will point toward negative infinity.precision
- precision context used to compare floating point valuespublic static OrientedPoint fromPointAndDirection(Vector1D point, boolean positiveFacing, Precision.DoubleEquivalence precision)
point
- the location of the hyperplanepositiveFacing
- if true, the hyperplane will face toward positive infinity;
otherwise, it will point toward negative infinity.precision
- precision context used to compare floating point valuespublic static OrientedPoint fromPointAndDirection(Vector1D point, Vector1D direction, Precision.DoubleEquivalence precision)
point
- the location of the hyperplanedirection
- the direction of the plus side of the hyperplaneprecision
- precision context used to compare floating point valuesIllegalArgumentException
- if the direction is zero as evaluated by the
given precision contextpublic static OrientedPoint createPositiveFacing(Vector1D point, Precision.DoubleEquivalence precision)
point
- the location of the hyperplaneprecision
- precision context used to compare floating point valuespublic static OrientedPoint createPositiveFacing(double location, Precision.DoubleEquivalence precision)
location
- the location of the hyperplaneprecision
- precision context used to compare floating point valuespublic static OrientedPoint createNegativeFacing(Vector1D point, Precision.DoubleEquivalence precision)
point
- the location of the hyperplaneprecision
- precision context used to compare floating point valuespublic static OrientedPoint createNegativeFacing(double location, Precision.DoubleEquivalence precision)
location
- the location of the hyperplaneprecision
- precision context used to compare floating point valuesCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.