Home
last modified time | relevance | path

Searched refs:crossProd (Results 1 – 15 of 15) sorted by relevance

/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2.java256 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 …]
DS2EdgeUtil.java68 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()
DS2Point.java56 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()
DS2EdgeIndex.java330 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()
DR2Vector.java80 public double crossProd(final R2Vector that) { in crossProd() method in R2Vector
DS2LatLngRect.java115 S2Point dir = S2Point.crossProd(ab, new S2Point(0, 0, 1)); in fromEdge()
692 S2Point x = S2Point.crossProd(y, z); in intersectsLatEdge()
DS2Cap.java375 S2Point dir = S2Point.crossProd(edge, axis); in intersects()
DS2Cell.java229 double flatArea = 0.5 * S2Point.crossProd( in approxArea()
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DGeometryTestCase.java61 S2Point p1 = S2Point.normalize(S2Point.crossProd(p0, randomPoint()));
62 S2Point p2 = S2Point.normalize(S2Point.crossProd(p0, p1));
149 S2Point y = S2Point.crossProd(z, x);
DS2PolylineTest.java51 S2Point y = S2Point.normalize(S2Point.crossProd(x, randomPoint())); in testGetLengthCentroid()
52 S2Point z = S2Point.normalize(S2Point.crossProd(x, y)); in testGetLengthCentroid()
DS2Test.java82 S2Point.crossProd(S2Projections.getUAxis(face), S2Projections.getVAxis(face)).dotProd( in testFaceUVtoXYZ()
103 S2Point.crossProd( in testUVNorms()
107 S2Point.crossProd( in testUVNorms()
DS2PolygonBuilderTest.java383 S2Point y = S2Point.normalize(S2Point.crossProd(x, randomPoint())); in testBuilder()
384 S2Point z = S2Point.normalize(S2Point.crossProd(x, y)); in testBuilder()
DS2LoopTest.java132 S2Point y = S2Point.normalize(S2Point.crossProd(x, randomPoint())); in testAreaCentroid()
133 S2Point z = S2Point.normalize(S2Point.crossProd(x, y)); in testAreaCentroid()
DS2CapTest.java76 S2Point tangent = S2Point.normalize(S2Point.crossProd(tiny.axis(), new S2Point(3, 2, 1))); in testBasic()
DS2CellTest.java57 S2Point.crossProd(cell.getVertexRaw(k), cell in testFaces()