Home
last modified time | relevance | path

Searched refs:dotProd (Results 1 – 14 of 14) sorted by relevance

/external/s2-geometry-library-java/src/com/google/common/geometry/
DS2.java258 double acb = -ab.dotProd(c); in simpleCrossing()
259 double cbd = -cd.dotProd(b); in simpleCrossing()
260 double bda = ab.dotProd(d); in simpleCrossing()
261 double dac = cd.dotProd(a); in simpleCrossing()
471 return new S2Point(0.5 * S2Point.crossProd(y, z).dotProd(r), in trueCentroid()
472 0.5 * S2Point.crossProd(z, x).dotProd(r), 0.5 * S2Point.crossProd(x, y).dotProd(r)); in trueCentroid()
498 return S2Point.crossProd(c, a).dotProd(b) > 0; in simpleCCW()
552 double det = aCrossB.dotProd(c); in robustCCW()
607 double sab = (a.dotProd(b) > 0) ? -1 : 1; in expensiveCCW()
608 double sbc = (b.dotProd(c) > 0) ? -1 : 1; in expensiveCCW()
[all …]
DR2Vector.java72 public static double dotProd(final R2Vector p1, final R2Vector p2) { in dotProd() method in R2Vector
76 public double dotProd(R2Vector that) { in dotProd() method in R2Vector
77 return dotProd(this, that); in dotProd()
DS2EdgeUtil.java200 double da = dir.dotProd(a); in addPoint()
201 double db = dir.dotProd(b); in addPoint()
508 double acb = -(ab.dotProd(c)); in simpleCrossing()
509 double bda = ab.dotProd(d); in simpleCrossing()
515 double cbd = -(cd.dotProd(b)); in simpleCrossing()
516 double dac = cd.dotProd(a); in simpleCrossing()
696 if (x.dotProd(S2Point.add(S2Point.add(a0, a1), S2Point.add(b0, b1))) < 0) { in getIntersection()
776 double sinDist = Math.abs(x.dotProd(aCrossB)) / aCrossB.norm(); in getDistance()
801 S2Point p = S2Point.minus(x, S2Point.mul(crossProd, x.dotProd(crossProd) / crossProd.norm2())); in getClosestPoint()
DS2LatLngRect.java116 double da = dir.dotProd(a); in fromEdge()
117 double db = dir.dotProd(b); in fromEdge()
713 a.dotProd(y), a.dotProd(x)), Math.atan2(b.dotProd(y), b.dotProd(x))); in intersectsLatEdge()
DS2Cap.java360 double dot = axis.dotProd(edge); in intersects()
376 if (dir.dotProd(vertices[k]) < 0 in intersects()
377 && dir.dotProd(vertices[(k + 1) & 3]) > 0) { in intersects()
DS2EdgeIndex.java451 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()
DS2Point.java69 public double dotProd(S2Point that) { in dotProd() method in S2Point
131 return Math.atan2(crossProd(this, va).norm(), this.dotProd(va)); in angle()
/external/skia/src/core/
DSkStrokerPriv.cpp103 SkScalar dotProd = SkPoint::DotProduct(beforeUnitNormal, afterUnitNormal); in RoundJoiner() local
104 AngleType angleType = Dot2AngleType(dotProd); in RoundJoiner()
142 SkScalar dotProd = SkPoint::DotProduct(beforeUnitNormal, afterUnitNormal); in MiterJoiner() local
143 AngleType angleType = Dot2AngleType(dotProd); in MiterJoiner()
172 if (0 == dotProd && invMiterLimit <= kOneOverSqrt2) { in MiterJoiner()
185 sinHalfAngle = SkScalarSqrt(SkScalarHalf(SK_Scalar1 + dotProd)); in MiterJoiner()
/external/skqp/src/core/
DSkStrokerPriv.cpp103 SkScalar dotProd = SkPoint::DotProduct(beforeUnitNormal, afterUnitNormal); in RoundJoiner() local
104 AngleType angleType = Dot2AngleType(dotProd); in RoundJoiner()
142 SkScalar dotProd = SkPoint::DotProduct(beforeUnitNormal, afterUnitNormal); in MiterJoiner() local
143 AngleType angleType = Dot2AngleType(dotProd); in MiterJoiner()
172 if (0 == dotProd && invMiterLimit <= kOneOverSqrt2) { in MiterJoiner()
185 sinHalfAngle = SkScalarSqrt(SkScalarHalf(SK_Scalar1 + dotProd)); in MiterJoiner()
/external/s2-geometry-library-java/tests/com/google/common/geometry/
DS2CapTest.java208 assertEquals(covering.contains(edgeCell), center.dotProd(edgeCell.getCenter()) > 0.1); in testCells()
212 covering.mayIntersect(cornerCell), center.dotProd(cornerCell.getCenter()) > 0); in testCells()
219 assertEquals(bulging.mayIntersect(edgeCell), center.dotProd(edgeCell.getCenter()) > 0.1); in testCells()
DS2CellTest.java53 assertDoubleNear(cell.getVertexRaw(k).dotProd(cell.getEdgeRaw(k)), 0); in testFaces()
54 assertDoubleNear(cell.getVertexRaw((k + 1) & 3).dotProd( in testFaces()
58 .getVertexRaw((k + 1) & 3))).dotProd(cell.getEdge(k)), 1.0); in testFaces()
DS2Test.java82 S2Point.crossProd(S2Projections.getUAxis(face), S2Projections.getVAxis(face)).dotProd( in testFaceUVtoXYZ()
/external/skqp/src/gpu/ops/
DGrAAConvexTessellator.cpp549 SkScalar dotProd = normal1.dot(normal2); in createOuterRing() local
550 if (dotProd < kRoundCapThreshold) { in createOuterRing()
576 SkScalar dotProd = normal1.dot(normal2); in createOuterRing() local
579 SkScalar sinHalfAngleSq = SkTMax(SkScalarHalf(SK_Scalar1 + dotProd), 0.f); in createOuterRing()
/external/skia/src/gpu/ops/
DGrAAConvexTessellator.cpp565 SkScalar dotProd = normal1.dot(normal2); in createOuterRing() local
566 if (dotProd < kRoundCapThreshold) { in createOuterRing()
592 SkScalar dotProd = normal1.dot(normal2); in createOuterRing() local
595 SkScalar sinHalfAngleSq = std::max(SkScalarHalf(SK_Scalar1 + dotProd), 0.f); in createOuterRing()