getReflection method

double getReflection(
  1. double a,
  2. double b
)

Implementation

double getReflection(double a, double b) {
  return a - (b - a);
}