/external/llvm-project/libcxx/test/std/numerics/c.math/c.math.lerp/ |
D | c.math.lerp.pass.cpp | 26 return std::lerp(T( 0), T(12), T(0)) == T(0) in constexpr_test() 27 && std::lerp(T(12), T( 0), T(0.5)) == T(6) in constexpr_test() 28 && std::lerp(T( 0), T(12), T(2)) == T(24); in constexpr_test() 35 ASSERT_SAME_TYPE(T, decltype(std::lerp(T(), T(), T()))); in test() 36 LIBCPP_ASSERT_NOEXCEPT( std::lerp(T(), T(), T())); in test() 43 assert((std::lerp(T( 0), T(12), T(0)) == T(0))); in test() 44 assert((std::lerp(T( 0), T(12), T(1)) == T(12))); in test() 45 assert((std::lerp(T(12), T( 0), T(0)) == T(12))); in test() 46 assert((std::lerp(T(12), T( 0), T(1)) == T(0))); in test() 48 assert((std::lerp(T( 0), T(12), T(0.5)) == T(6))); in test() [all …]
|
/external/skia/modules/skottie/src/layers/shapelayer/ |
D | PuckerBloat.cpp | 23 static SkPoint lerp(const SkPoint& p0, const SkPoint& p1, SkScalar t) { in lerp() function 61 path.moveTo(lerp(contour_start, center, fAmount)); in onRevalidateEffect() 63 path.cubicTo(lerp(c.ctrl0, center, -fAmount), in onRevalidateEffect() 64 lerp(c.ctrl1, center, -fAmount), in onRevalidateEffect() 65 lerp(c.pt , center, fAmount)); in onRevalidateEffect() 89 lerp(line_start, line_end, kCtrlPosFraction), in onRevalidateEffect() 90 lerp(line_start, line_end, 1 - kCtrlPosFraction), in onRevalidateEffect() 110 lerp(pts[1], conic_start, kCubicCircleCoeff), in onRevalidateEffect() 111 lerp(pts[1], conic_end , kCubicCircleCoeff), in onRevalidateEffect()
|
D | Gradient.cpp | 159 auto lerp = [](float a, float b, float t) { return a + t * (b - a); }; in onSync() local 164 lerp(current_stop.fColor.fR, cs.r, t_c ), in onSync() 165 lerp(current_stop.fColor.fG, cs.g, t_c ), in onSync() 166 lerp(current_stop.fColor.fB, cs.b, t_c ), in onSync() 167 lerp(current_stop.fColor.fA, os.a, t_o) in onSync()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/content/ |
D | ShapeData.java | 74 setInitialPoint(MiscUtils.lerp(initialPoint1.x, initialPoint2.x, percentage), in interpolateBetween() 75 MiscUtils.lerp(initialPoint1.y, initialPoint2.y, percentage)); in interpolateBetween() 90 MiscUtils.lerp(cp11.x, cp12.x, percentage), MiscUtils.lerp(cp11.y, cp12.y, in interpolateBetween() 93 MiscUtils.lerp(cp21.x, cp22.x, percentage), MiscUtils.lerp(cp21.y, cp22.y, in interpolateBetween() 96 MiscUtils.lerp(vertex1.x, vertex2.x, percentage), MiscUtils.lerp(vertex1.y, vertex2.y, in interpolateBetween()
|
D | GradientColor.java | 28 public void lerp(GradientColor gc1, GradientColor gc2, float progress) { in lerp() method in GradientColor 35 positions[i] = MiscUtils.lerp(gc1.positions[i], gc2.positions[i], progress); in lerp()
|
/external/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | compatibility.hpp | 38 …template <typename T> GLM_FUNC_QUALIFIER T lerp(T x, T y, T a){return mix(x, y, a);} … in lerp() function 39 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec2<T, P> lerp(const tvec2<T, P>& x, const… in lerp() function 41 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> lerp(const tvec3<T, P>& x, const… in lerp() function 42 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec4<T, P> lerp(const tvec4<T, P>& x, const… in lerp() function 43 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec2<T, P> lerp(const tvec2<T, P>& x, const… in lerp() function 44 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> lerp(const tvec3<T, P>& x, const… in lerp() function 45 …template <typename T, precision P> GLM_FUNC_QUALIFIER tvec4<T, P> lerp(const tvec4<T, P>& x, const… in lerp() function
|
/external/skia/samplecode/ |
D | SampleFitCubicToCircle.cpp | 79 static double lerp(double x, double y, double T) { in lerp() function 86 double ab = lerp(x[0], x[1], T); in eval_cubic() 87 double bc = lerp(x[1], x[2], T); in eval_cubic() 88 double cd = lerp(x[2], x[3], T); in eval_cubic() 89 double abc = lerp(ab, bc, T); in eval_cubic() 90 double bcd = lerp(bc, cd, T); in eval_cubic() 91 double abcd = lerp(abc, bcd, T); in eval_cubic()
|
/external/autotest/client/site_tests/graphics_SanAngeles/src/ |
D | demo.c | 971 float lerp[5]; in camTrack() local 991 lerp[a] = (cam->src[a] + cam->dest[a] * trackPos) * 0.01f; in camTrack() 996 cX = lerp[0]; in camTrack() 997 cY = lerp[1]; in camTrack() 998 cZ = lerp[2]; in camTrack() 999 eX = cX - (float)cos(lerp[3]) * dist; in camTrack() 1000 eY = cY - (float)sin(lerp[3]) * dist; in camTrack() 1001 eZ = cZ - lerp[4]; in camTrack() 1005 eX = lerp[0]; in camTrack() 1006 eY = lerp[1]; in camTrack() [all …]
|
/external/skqp/include/core/ |
D | SkShader.h | 207 SkBlendMode mode, float lerp = 1); 225 static sk_sp<SkShader> MakeMixer(sk_sp<SkShader> dst, sk_sp<SkShader> src, float lerp) { in MakeMixer() argument 226 return MakeCompose(std::move(dst), std::move(src), SkBlendMode::kSrc, lerp); in MakeMixer()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/value/ |
D | LottieInterpolatedPointValue.java | 22 MiscUtils.lerp(startValue.x, endValue.x, progress), in interpolateValue() 23 MiscUtils.lerp(startValue.y, endValue.y, progress) in interpolateValue()
|
D | LottieRelativePointValueCallback.java | 26 MiscUtils.lerp( in getValue() 30 MiscUtils.lerp( in getValue()
|
D | LottieRelativeIntegerValueCallback.java | 13 int originalValue = MiscUtils.lerp( in getValue()
|
D | LottieInterpolatedFloatValue.java | 19 return MiscUtils.lerp(startValue, endValue, progress); in interpolateValue()
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | llvm.amdgcn.lerp.ll | 4 declare i32 @llvm.amdgcn.lerp(i32, i32, i32) #0 9 %result= call i32 @llvm.amdgcn.lerp(i32 %src, i32 100, i32 100) #0
|
/external/llvm-project/llvm/test/CodeGen/AMDGPU/ |
D | llvm.amdgcn.lerp.ll | 4 declare i32 @llvm.amdgcn.lerp(i32, i32, i32) #0 9 %result= call i32 @llvm.amdgcn.lerp(i32 %src, i32 100, i32 100) #0
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/keyframe/ |
D | ScaleKeyframeAnimation.java | 35 MiscUtils.lerp(startTransform.getScaleX(), endTransform.getScaleX(), keyframeProgress), in getValue() 36 MiscUtils.lerp(startTransform.getScaleY(), endTransform.getScaleY(), keyframeProgress) in getValue()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/utils/ |
D | MiscUtils.java | 50 public static float lerp(float a, float b, @FloatRange(from = 0f, to = 1f) float percentage) { in lerp() method in MiscUtils 54 public static double lerp(double a, double b, @FloatRange(from = 0f, to = 1f) double percentage) { in lerp() method in MiscUtils 58 public static int lerp(int a, int b, @FloatRange(from = 0f, to = 1f) float percentage) { in lerp() method in MiscUtils
|
/external/skia/src/core/ |
D | SkVM.h | 732 F32 lerp(F32 lo, F32 hi, F32 t); 733 F32 lerp(F32 lo, F32 hi, float t) { return lerp( lo , hi , splat(t)); } in lerp() function 734 F32 lerp(F32 lo, float hi, float t) { return lerp( lo , splat(hi), splat(t)); } in lerp() function 735 F32 lerp(F32 lo, float hi, F32 t) { return lerp( lo , splat(hi), t ); } in lerp() function 736 F32 lerp(float lo, F32 hi, F32 t) { return lerp(splat(lo), hi , t ); } in lerp() function 737 F32 lerp(float lo, F32 hi, float t) { return lerp(splat(lo), hi , splat(t)); } in lerp() function 738 F32 lerp(float lo, float hi, F32 t) { return lerp(splat(lo), splat(hi), t ); } in lerp() function 1183 SI F32 lerp(F32 lo, F32 hi, F32 t) { return lo->lerp(lo,hi,t); } in lerp() function 1184 SI F32 lerp(F32 lo, F32 hi, float t) { return lo->lerp(lo,hi,t); } in lerp() function 1185 SI F32 lerp(F32 lo, float hi, F32 t) { return lo->lerp(lo,hi,t); } in lerp() function [all …]
|
D | SkCompressedDataUtils.cpp | 170 static SkPMColor lerp(float t, SkPMColor col0, SkPMColor col1) { in lerp() function 204 colors[2] = lerp(2.0f/3.0f, colors[0], colors[1]); in decompress_bc1() 205 colors[3] = lerp(1.0f/3.0f, colors[0], colors[1]); in decompress_bc1()
|
/external/swiftshader/third_party/marl/examples/ |
D | fractal.cpp | 60 inline float lerp(float x, float min, float max) { in lerp() function 184 color += julia(lerp(dx, windowMinX, windowMaxX), in main() 185 lerp(dy, windowMinY, windowMaxY), cx, cy); in main()
|
/external/skqp/src/gpu/ccpr/ |
D | GrCCFillGeometry.cpp | 131 template<int N> static inline SkNx<N,float> lerp(const SkNx<N,float>& a, const SkNx<N,float>& b, in lerp() function 185 Sk2f p012 = lerp(p01, p12, t); in appendQuadratics() 532 *ab = lerp(p0, p1, TT); in chop_cubic() 533 Sk2f bc = lerp(p1, p2, TT); in chop_cubic() 534 *cd = lerp(p2, p3, TT); in chop_cubic() 535 *abc = lerp(*ab, bc, TT); in chop_cubic() 536 *bcd = lerp(bc, *cd, TT); in chop_cubic() 537 *abcd = lerp(*abc, *bcd, TT); in chop_cubic() 727 Sk4f p3d01 = lerp(p3d0, p3d1, midT4); in conicTo() 728 Sk4f p3d12 = lerp(p3d1, p3d2, midT4); in conicTo() [all …]
|
/external/eigen/demos/opengl/ |
D | quaternion_demo.cpp | 117 template<typename T> T lerp(float t, const T& a, const T& b) in lerp() function 123 template<> Quaternionf lerp(float t, const Quaternionf& a, const Quaternionf& b) in lerp() function 131 return Frame(lerp(alpha,a.position,b.position), in lerpFrame() 132 … Quaternionf(lerp(alpha,OrientationType(a.orientation),OrientationType(b.orientation)))); in lerpFrame() 189 template<> EulerAngles<float> lerp(float t, const EulerAngles<float>& a, const EulerAngles<float>& … in lerp() function 192 res.coeffs() = lerp(t, a.coeffs(), b.coeffs()); in lerp() 531 aux1 = aux0.lerp(duration/2,mInitFrame); in resetCamera()
|
/external/skqp/src/shaders/ |
D | SkComposeShader.cpp | 45 float lerp = buffer.readScalar(); in CreateProc() local 51 return MakeCompose(std::move(dst), std::move(src), static_cast<SkBlendMode>(mode), lerp); in CreateProc()
|
/external/skia/gm/ |
D | trickycubicstrokes.cpp | 92 static SkPoint lerp(const SkPoint& a, const SkPoint& b, float T) { in lerp() function 141 SkPoint asCubic[4] = {p[0], lerp(p[0], p[1], 2/3.f), lerp(p[1], p[2], 1/3.f), p[2]}; in draw_test()
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | resize_bilinear_op.cc | 82 float lerp; member 100 interpolation[i].lerp = in - in_f; in compute_interpolation_weights() 166 const float ys_lerp = ys_[y].lerp; in operator ()() 167 const float xs_lerp = xs_[x].lerp; in operator ()()
|