Searched refs:S1Point (Results 1 – 10 of 10) sorted by relevance
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/geometry/spherical/oned/ |
H A D | S1PointTest.java | 30 S1Point p = new S1Point(1.0 + k * MathUtils.TWO_PI); in testS1Point() 39 Assert.assertTrue(S1Point.NaN.isNaN()); in testNaN() 40 Assert.assertTrue(S1Point.NaN.equals(new S1Point(Double.NaN))); in testNaN() 41 Assert.assertFalse(new S1Point(1.0).equals(S1Point.NaN)); in testNaN() 46 S1Point a = new S1Point(1.0); in testEquals() 47 S1Point b = new S1Point(1.0); in testEquals() 57 S1Point a = new S1Point(1.0); in testDistance() 58 S1Point b = new S1Point(a.getAlpha() + 0.5 * FastMath.PI); in testDistance() 64 S1Point a = new S1Point(1.0); in testSpace()
|
H A D | ArcsSetTest.java | 44 Assert.assertEquals(Region.Location.BOUNDARY, set.checkPoint(new S1Point(2.3))); in testArc() 45 Assert.assertEquals(Region.Location.BOUNDARY, set.checkPoint(new S1Point(5.7))); in testArc() 46 Assert.assertEquals(Region.Location.OUTSIDE, set.checkPoint(new S1Point(1.2))); in testArc() 47 Assert.assertEquals(Region.Location.OUTSIDE, set.checkPoint(new S1Point(8.5))); in testArc() 48 Assert.assertEquals(Region.Location.INSIDE, set.checkPoint(new S1Point(8.7))); in testArc() 49 Assert.assertEquals(Region.Location.INSIDE, set.checkPoint(new S1Point(3.0))); in testArc() 77 S1Point p = new S1Point(alpha); in testSplitOver2Pi() 94 S1Point p = new S1Point(alpha); in testSplitAtEnd() 104 S1Point zero = new S1Point(0.0); in testSplitAtEnd() 108 S1Point pi = new S1Point(FastMath.PI); in testSplitAtEnd() [all …]
|
H A D | LimitAngleTest.java | 28 LimitAngle l = new LimitAngle(new S1Point(1.0 + k * MathUtils.TWO_PI), false, 1.0e-10); in testReversedLimit()
|
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/main/java/org/apache/commons/math3/geometry/spherical/oned/ |
H A D | S1Point.java | 29 public class S1Point implements Point<Sphere1D> { class 33 public static final S1Point NaN = new S1Point(Double.NaN, Vector2D.NaN); 50 public S1Point(final double alpha) { in S1Point() method in S1Point 59 private S1Point(final double alpha, final Vector2D vector) { in S1Point() method in S1Point 91 return distance(this, (S1Point) point); in distance() 99 public static double distance(S1Point p1, S1Point p2) { in distance() 129 if (other instanceof S1Point) { in equals() 130 final S1Point rhs = (S1Point) other; in equals()
|
H A D | ArcsSet.java | 145 new LimitAngle(new S1Point(normalizedLower), false, tolerance).wholeHyperplane(); in buildTree() 150 new LimitAngle(new S1Point(normalizedUpper), true, tolerance).wholeHyperplane(); in buildTree() 455 setBarycenter(S1Point.NaN); in computeGeometricalProperties() 467 setBarycenter(S1Point.NaN); in computeGeometricalProperties() 469 setBarycenter(new S1Point(sum / (2 * size))); in computeGeometricalProperties() 484 final double alpha = ((S1Point) point).getAlpha(); in projectToBoundary() 518 return new BoundaryProjection<Sphere1D>(point, new S1Point(a[1]), offset1); in projectToBoundary() 520 return new BoundaryProjection<Sphere1D>(point, new S1Point(a[0]), offset0); in projectToBoundary() 543 … return new BoundaryProjection<Sphere1D>(point, new S1Point(first), currentOffset); in projectToBoundary() 552 … return new BoundaryProjection<Sphere1D>(point, new S1Point(first), currentOffset); in projectToBoundary() [all …]
|
H A D | LimitAngle.java | 30 private S1Point location; 44 public LimitAngle(final S1Point location, final boolean direct, final double tolerance) { in LimitAngle() 61 final double delta = ((S1Point) point).getAlpha() - location.getAlpha(); in getOffset() 113 public S1Point getLocation() { in getLocation()
|
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/main/java/org/apache/commons/math3/geometry/spherical/twod/ |
H A D | Circle.java | 28 import org.apache.commons.math3.geometry.spherical.oned.S1Point; 149 public S1Point toSubSpace(final Point<Sphere2D> point) { in toSubSpace() 150 return new S1Point(getPhase(((S2Point) point).getVector())); in toSubSpace() 171 return new S2Point(getPointAt(((S1Point) point).getAlpha())); in toSpace()
|
H A D | EdgesBuilder.java | 32 import org.apache.commons.math3.geometry.spherical.oned.S1Point; 94 final Vertex start = new Vertex((S2Point) circle.toSpace(new S1Point(a.getInf()))); in addContribution() 95 final Vertex end = new Vertex((S2Point) circle.toSpace(new S1Point(a.getSup()))); in addContribution()
|
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/geometry/spherical/twod/ |
H A D | CircleTest.java | 25 import org.apache.commons.math3.geometry.spherical.oned.S1Point; 115 Vector3D q = circle.toSpace(new S1Point(alpha)).getVector(); in testSpace() 178 SubLimitAngle sub = new LimitAngle(new S1Point(MathUtils.TWO_PI * random.nextDouble()), in testTransform()
|
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/geometry/partitioning/ |
H A D | RegionParser.java | 38 import org.apache.commons.math3.geometry.spherical.oned.S1Point; 72 return new LimitAngle(new S1Point(getNumber()), getBoolean(), getNumber()); in parseArcsSet()
|