Searched defs:polyVertex (Results 1 - 1 of 1) sorted by relevance

/frameworks/base/libs/hwui/
H A DSpotShadow.cpp360 * @param polyVertex The input polygon's vertex.
365 const Vector3& lightCenter, const Vector3& polyVertex) {
366 float lightToPolyZ = lightCenter.z - polyVertex.z;
371 ratioZ = MathUtils::clamp(polyVertex.z / lightToPolyZ, 0.0f, CASTER_Z_CAP_RATIO);
374 outline.x = polyVertex.x - ratioZ * (lightCenter.x - polyVertex.x);
375 outline.y = polyVertex.y - ratioZ * (lightCenter.y - polyVertex.y);
364 projectCasterToOutline(Vector2& outline, const Vector3& lightCenter, const Vector3& polyVertex) argument

Completed in 2139 milliseconds