Searched refs:COS_45 (Results 1 – 2 of 2) sorted by relevance
44 final static double COS_45 = Math.cos(Math.toRadians(45)); field in FakeShadowDrawable150 return (float) (maxShadowSize * SHADOW_MULTIPLIER + (1 - COS_45) * cornerRadius); in calculateVerticalPadding()159 return (float) (maxShadowSize + (1 - COS_45) * cornerRadius); in calculateHorizontalPadding()
41 private static final double COS_45 = Math.cos(Math.toRadians(45)); field in RoundRectDrawableWithShadow181 return (float) (maxShadowSize * SHADOW_MULTIPLIER + (1 - COS_45) * cornerRadius); in calculateVerticalPadding()190 return (float) (maxShadowSize + (1 - COS_45) * cornerRadius); in calculateHorizontalPadding()