Home
last modified time | relevance | path

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

/external/deqp/framework/common/
DtcuVectorUtil.hpp91 float cosAngle = (n * i); in refract() local
92 float k = 1.0f - eta * eta * (1.0f - cosAngle * cosAngle); in refract()
96 return eta * i - (eta * cosAngle + deFloatSqrt(k)) * n; in refract()
196 T cosAngle = dot(n, i); in refract() local
197 T k = T(1) - eta * eta * (T(1) - cosAngle * cosAngle); in refract()
201 return i * eta - n * T(eta * cosAngle + ::sqrt(k)); in refract()
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/interpolation/
DMicrosphereInterpolatingFunction.java212 md.store(cosAngle(diff, md.normal()) * w, sd); in value()
240 private double cosAngle(final RealVector v, final RealVector w) { in cosAngle() method in MicrosphereInterpolatingFunction
/external/skia/src/effects/
DSkLightingImageFilter.cpp963 SkScalar cosAngle = -surfaceToLight.dot(fS); in lightColor() local
965 if (cosAngle >= fCosOuterConeAngle) { in lightColor()
966 scale = SkScalarPow(cosAngle, fSpecularExponent); in lightColor()
967 if (cosAngle < fCosInnerConeAngle) { in lightColor()
968 scale = SkScalarMul(scale, cosAngle - fCosOuterConeAngle); in lightColor()