public final class OrientedPoints extends Object
OrientedPoint
instances.Modifier and Type | Method and Description |
---|---|
static OrientedPoint |
createNegativeFacing(double location,
DoublePrecisionContext precision)
Create a new instance at the given location, oriented so that it is facing negative infinity.
|
static OrientedPoint |
createNegativeFacing(Vector1D point,
DoublePrecisionContext precision)
Create a new instance at the given point, oriented so that it is facing negative infinity.
|
static OrientedPoint |
createPositiveFacing(double location,
DoublePrecisionContext precision)
Create a new instance at the given location, oriented so that it is facing positive infinity.
|
static OrientedPoint |
createPositiveFacing(Vector1D point,
DoublePrecisionContext precision)
Create a new instance at the given point, oriented so that it is facing positive infinity.
|
static OrientedPoint |
fromLocationAndDirection(double location,
boolean positiveFacing,
DoublePrecisionContext precision)
Create a new instance from the given location and boolean direction value.
|
static OrientedPoint |
fromPointAndDirection(Vector1D point,
boolean positiveFacing,
DoublePrecisionContext precision)
Create a new instance from the given point and boolean direction value.
|
static OrientedPoint |
fromPointAndDirection(Vector1D point,
Vector1D direction,
DoublePrecisionContext precision)
Create a new instance from the given point and direction.
|
public static OrientedPoint fromLocationAndDirection(double location, boolean positiveFacing, DoublePrecisionContext 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, DoublePrecisionContext 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, DoublePrecisionContext 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, DoublePrecisionContext precision)
point
- the location of the hyperplaneprecision
- precision context used to compare floating point valuespublic static OrientedPoint createPositiveFacing(double location, DoublePrecisionContext precision)
location
- the location of the hyperplaneprecision
- precision context used to compare floating point valuespublic static OrientedPoint createNegativeFacing(Vector1D point, DoublePrecisionContext precision)
point
- the location of the hyperplaneprecision
- precision context used to compare floating point valuespublic static OrientedPoint createNegativeFacing(double location, DoublePrecisionContext precision)
location
- the location of the hyperplaneprecision
- precision context used to compare floating point valuesCopyright © 2016–2020 The Apache Software Foundation. All rights reserved.