Class CutAngles
- java.lang.Object
-
- org.apache.commons.geometry.spherical.oned.CutAngles
-
public final class CutAngles extends java.lang.ObjectClass containing factory methods for constructingCutAngleinstances.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCutAngles()Utility class; no instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CutAnglecreateNegativeFacing(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 CutAnglecreateNegativeFacing(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 CutAnglecreatePositiveFacing(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 CutAnglecreatePositiveFacing(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 CutAnglefromAzimuthAndDirection(double azimuth, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)Create a new instance from the given azimuth and direction.static CutAnglefromPointAndDirection(Point1S point, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)Create a new instance from the given point and direction.
-
-
-
Method Detail
-
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
-
-