• Home
  • Raw
  • Download

Lines Matching refs:S2Projections

58       assertEquals(S2Projections.stToUV(x), x);  in testSTUV()
59 assertEquals(S2Projections.uvToST(x), x); in testSTUV()
63 assertDoubleNear(S2Projections.uvToST(S2Projections.stToUV(x)), x); in testSTUV()
64 assertDoubleNear(S2Projections.stToUV(S2Projections.uvToST(x)), x); in testSTUV()
72 S2Point center = S2Projections.faceUvToXyz(face, 0, 0); in testFaceUVtoXYZ()
73 assertEquals(S2Projections.getNorm(face), center); in testFaceUVtoXYZ()
82 S2Point.crossProd(S2Projections.getUAxis(face), S2Projections.getVAxis(face)).dotProd( in testFaceUVtoXYZ()
83 S2Projections.faceUvToXyz(face, 0, 0)), 1.0); in testFaceUVtoXYZ()
92 assertEquals(S2Projections.faceUvToXyz(face, sign, -sign), in testFaceUVtoXYZ()
93 S2Projections.faceUvToXyz((face + 1) % 6, -1, -1)); in testFaceUVtoXYZ()
104 S2Projections.faceUvToXyz(face, x, -1), S2Projections.faceUvToXyz(face, x, 1)) in testUVNorms()
105 .angle(S2Projections.getUNorm(face, x)), 0); in testUVNorms()
108 S2Projections.faceUvToXyz(face, -1, x), S2Projections.faceUvToXyz(face, 1, x)) in testUVNorms()
109 .angle(S2Projections.getVNorm(face, x)), 0); in testUVNorms()
117 assertEquals(S2Projections.getUAxis(face), S2Point.sub( in testUVAxes()
118 S2Projections.faceUvToXyz(face, 1, 0), S2Projections.faceUvToXyz(face, 0, 0))); in testUVAxes()
119 assertEquals(S2Projections.getVAxis(face), S2Point.sub( in testUVAxes()
120 S2Projections.faceUvToXyz(face, 0, 1), S2Projections.faceUvToXyz(face, 0, 0))); in testUVAxes()
232 S2Projections.MIN_ANGLE_SPAN, S2Projections.MAX_ANGLE_SPAN, S2Projections.AVG_ANGLE_SPAN);
234 new MetricBundle(S2Projections.MIN_WIDTH, S2Projections.MAX_WIDTH, S2Projections.AVG_WIDTH);
236 new MetricBundle(S2Projections.MIN_EDGE, S2Projections.MAX_EDGE, S2Projections.AVG_EDGE);
238 new MetricBundle(S2Projections.MIN_DIAG, S2Projections.MAX_DIAG, S2Projections.AVG_DIAG);
240 new MetricBundle(S2Projections.MIN_AREA, S2Projections.MAX_AREA, S2Projections.AVG_AREA);
251 assertTrue(S2Projections.MAX_EDGE_ASPECT >= 1.0);
252 assertTrue(S2Projections.MAX_EDGE_ASPECT
253 < S2Projections.MAX_EDGE.deriv() / S2Projections.MIN_EDGE.deriv());
254 assertTrue(S2Projections.MAX_DIAG_ASPECT >= 1);
255 assertTrue(S2Projections.MAX_DIAG_ASPECT
256 < S2Projections.MAX_DIAG.deriv() / S2Projections.MIN_DIAG.deriv());
263 assertTrue(S2Projections.MIN_AREA.deriv()
264 >= S2Projections.MIN_WIDTH.deriv() * S2Projections.MIN_EDGE.deriv() - 1e-15);
265 assertTrue(S2Projections.MAX_AREA.deriv()
266 < S2Projections.MAX_WIDTH.deriv() * S2Projections.MAX_EDGE.deriv() + 1e-15);
277 double dWidth = (2 * S2Projections.MIN_WIDTH.deriv()) * Math.pow(2, -level);
284 assertEquals(S2Projections.MIN_WIDTH.getMinLevel(dWidth), expectedLevel);
285 assertEquals(S2Projections.MIN_WIDTH.getMaxLevel(dWidth), expectedLevel);
286 assertEquals(S2Projections.MIN_WIDTH.getClosestLevel(dWidth), expectedLevel);
289 assertEquals(S2Projections.MIN_WIDTH.getMinLevel(1.2 * dWidth), expectedLevel);
290 assertEquals(S2Projections.MIN_WIDTH.getMaxLevel(0.8 * dWidth), expectedLevel);
291 assertEquals(S2Projections.MIN_WIDTH.getClosestLevel(1.2 * dWidth), expectedLevel);
292 assertEquals(S2Projections.MIN_WIDTH.getClosestLevel(0.8 * dWidth), expectedLevel);
295 double area1 = (4 * S2Projections.MIN_AREA.deriv()) * Math.pow(4, -level);
299 assertEquals(S2Projections.MIN_AREA.getMinLevel(area1), expectedLevel);
300 assertEquals(S2Projections.MIN_AREA.getMaxLevel(area1), expectedLevel);
301 assertEquals(S2Projections.MIN_AREA.getClosestLevel(area1), expectedLevel);
302 assertEquals(S2Projections.MIN_AREA.getMinLevel(1.2 * area1), expectedLevel);
303 assertEquals(S2Projections.MIN_AREA.getMaxLevel(0.8 * area1), expectedLevel);
304 assertEquals(S2Projections.MIN_AREA.getClosestLevel(1.2 * area1), expectedLevel);
305 assertEquals(S2Projections.MIN_AREA.getClosestLevel(0.8 * area1), expectedLevel);