Class CutAngles
java.lang.Object
org.apache.commons.geometry.spherical.oned.CutAngles
Class containing factory methods for constructing
CutAngle
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CutAngle
createNegativeFacing
(double azimuth, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given azimuth, oriented so that the plus side of the hyperplane points toward decreasing angular values.static CutAngle
createNegativeFacing
(Point1S point, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given point, oriented so that the plus side of the hyperplane points toward decreasing angular values.static CutAngle
createPositiveFacing
(double azimuth, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given azimuth, oriented so that the plus side of the hyperplane points toward increasing angular values.static CutAngle
createPositiveFacing
(Point1S point, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given point, oriented so that the plus side of the hyperplane points toward increasing angular values.static CutAngle
fromAzimuthAndDirection
(double azimuth, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance from the given azimuth and direction.static CutAngle
fromPointAndDirection
(Point1S point, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance from the given point and direction.
-
Constructor Details
-
CutAngles
private CutAngles()Utility class; no instantiation.
-
-
Method Details
-
fromAzimuthAndDirection
public static CutAngle fromAzimuthAndDirection(double azimuth, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance from the given azimuth and direction.- Parameters:
azimuth
- azimuth value in radianspositiveFacing
- if true, the instance's plus side will be oriented to point toward increasing angular values; if false, it will point toward decreasing angular valueprecision
- precision context used to determine floating point equality- Returns:
- a new instance
-
fromPointAndDirection
public static CutAngle fromPointAndDirection(Point1S point, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance from the given point and direction.- Parameters:
point
- point representing the location of the hyperplanepositiveFacing
- if true, the instance's plus side will be oriented to point toward increasing angular values; if false, it will point toward decreasing angular valueprecision
- precision context used to determine floating point equality- Returns:
- a new instance
-
createPositiveFacing
public static CutAngle createPositiveFacing(double azimuth, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given azimuth, oriented so that the plus side of the hyperplane points toward increasing angular values.- Parameters:
azimuth
- azimuth value in radiansprecision
- precision precision context used to determine floating point equality- Returns:
- a new instance
-
createPositiveFacing
public static CutAngle createPositiveFacing(Point1S point, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given point, oriented so that the plus side of the hyperplane points toward increasing angular values.- Parameters:
point
- point representing the location of the hyperplaneprecision
- precision precision context used to determine floating point equality- Returns:
- a new instance
-
createNegativeFacing
public static CutAngle createNegativeFacing(double azimuth, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given azimuth, oriented so that the plus side of the hyperplane points toward decreasing angular values.- Parameters:
azimuth
- azimuth value in radiansprecision
- precision precision context used to determine floating point equality- Returns:
- a new instance
-
createNegativeFacing
public static CutAngle createNegativeFacing(Point1S point, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given point, oriented so that the plus side of the hyperplane points toward decreasing angular values.- Parameters:
point
- point representing the location of the hyperplaneprecision
- precision precision context used to determine floating point equality- Returns:
- a new instance
-