Home
last modified time | relevance | path

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

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/shadowutil/
DSpotShadow.java459 public static boolean calcShadow(@NonNull float[] lightPoly, int lightPolyLength, in calcShadow() argument
471 float t = lightPoly[j * 3 + 2] - poly[i * 3 + 2]; in calcShadow()
475 t = lightPoly[j * 3 + 2] / t; in calcShadow()
476 float x = lightPoly[j * 3 + 0] - t * (lightPoly[j * 3 + 0] - poly[i * 3 + 0]); in calcShadow()
477 float y = lightPoly[j * 3 + 1] - t * (lightPoly[j * 3 + 1] - poly[i * 3 + 1]); in calcShadow()
503 centroid3d(lightPoly, lightPolyLength, p); in calcShadow()