/external/s2-geometry-library-java/src/com/google/common/geometry/ |
D | S2.java | 256 S2Point ab = S2Point.crossProd(a, b); in simpleCrossing() 257 S2Point cd = S2Point.crossProd(c, d); in simpleCrossing() 289 S2Point x = S2Point.crossProd(S2Point.add(b, a), S2Point.sub(b, a)); in robustCrossProd() 389 S2Point ab = S2Point.crossProd(a, b); in girardArea() 390 S2Point bc = S2Point.crossProd(b, c); in girardArea() 391 S2Point ac = S2Point.crossProd(a, c); in girardArea() 459 double sina = S2Point.crossProd(b, c).norm(); in trueCentroid() 460 double sinb = S2Point.crossProd(c, a).norm(); in trueCentroid() 461 double sinc = S2Point.crossProd(a, b).norm(); in trueCentroid() 471 return new S2Point(0.5 * S2Point.crossProd(y, z).dotProd(r), in trueCentroid() [all …]
|
D | S2EdgeUtil.java | 68 this.aCrossB = S2Point.crossProd(a, b); in EdgeCrosser() 146 S2Point cCrossD = S2Point.crossProd(c, d); in robustCrossingInternal() 199 S2Point dir = S2Point.crossProd(aCrossB, new S2Point(0, 0, 1)); in addPoint() 507 S2Point ab = S2Point.crossProd(a, b); in simpleCrossing() 514 S2Point cd = S2Point.crossProd(c, d); in simpleCrossing() 545 S2Point aCrossB = S2Point.crossProd(a, b); in robustCrossing() 562 S2Point cCrossD = S2Point.crossProd(c, d); in robustCrossing() 799 S2Point crossProd = S2.robustCrossProd(a, b); in getClosestPoint() local 801 S2Point p = S2Point.minus(x, S2Point.mul(crossProd, x.dotProd(crossProd) / crossProd.norm2())); in getClosestPoint() 804 if (S2.simpleCCW(crossProd, a, p) && S2.simpleCCW(p, b, crossProd)) { in getClosestPoint()
|
D | S2Point.java | 56 public static S2Point crossProd(final S2Point p1, final S2Point p2) { in crossProd() method in S2Point 92 return S2Point.normalize(crossProd(this, temp)); in ortho() 131 return Math.atan2(crossProd(this, va).norm(), this.dotProd(va)); in angle()
|
D | S2EdgeIndex.java | 330 S2Point.mul(S2Point.normalize(S2Point.crossProd(pq, a)), edgeLength * THICKENING); in getCovering() 451 double acb = S2Point.crossProd(a, c).dotProd(b); in lenientCrossing() 452 double bda = S2Point.crossProd(b, d).dotProd(a); in lenientCrossing() 459 double cbd = S2Point.crossProd(c, b).dotProd(d); in lenientCrossing() 460 double dac = S2Point.crossProd(c, a).dotProd(c); in lenientCrossing()
|
D | R2Vector.java | 80 public double crossProd(final R2Vector that) { in crossProd() method in R2Vector
|
D | S2LatLngRect.java | 115 S2Point dir = S2Point.crossProd(ab, new S2Point(0, 0, 1)); in fromEdge() 692 S2Point x = S2Point.crossProd(y, z); in intersectsLatEdge()
|
D | S2Cap.java | 375 S2Point dir = S2Point.crossProd(edge, axis); in intersects()
|
D | S2Cell.java | 229 double flatArea = 0.5 * S2Point.crossProd( in approxArea()
|
/external/s2-geometry-library-java/tests/com/google/common/geometry/ |
D | GeometryTestCase.java | 61 S2Point p1 = S2Point.normalize(S2Point.crossProd(p0, randomPoint())); 62 S2Point p2 = S2Point.normalize(S2Point.crossProd(p0, p1)); 149 S2Point y = S2Point.crossProd(z, x);
|
D | S2PolylineTest.java | 51 S2Point y = S2Point.normalize(S2Point.crossProd(x, randomPoint())); in testGetLengthCentroid() 52 S2Point z = S2Point.normalize(S2Point.crossProd(x, y)); in testGetLengthCentroid()
|
D | S2Test.java | 82 S2Point.crossProd(S2Projections.getUAxis(face), S2Projections.getVAxis(face)).dotProd( in testFaceUVtoXYZ() 103 S2Point.crossProd( in testUVNorms() 107 S2Point.crossProd( in testUVNorms()
|
D | S2PolygonBuilderTest.java | 383 S2Point y = S2Point.normalize(S2Point.crossProd(x, randomPoint())); in testBuilder() 384 S2Point z = S2Point.normalize(S2Point.crossProd(x, y)); in testBuilder()
|
D | S2LoopTest.java | 132 S2Point y = S2Point.normalize(S2Point.crossProd(x, randomPoint())); in testAreaCentroid() 133 S2Point z = S2Point.normalize(S2Point.crossProd(x, y)); in testAreaCentroid()
|
D | S2CapTest.java | 76 S2Point tangent = S2Point.normalize(S2Point.crossProd(tiny.axis(), new S2Point(3, 2, 1))); in testBasic()
|
D | S2CellTest.java | 57 S2Point.crossProd(cell.getVertexRaw(k), cell in testFaces()
|