All pastes #29712 Raw Edit

Miscellany

public text v1 · immutable
#29712 ·published 2005-11-20 20:26 UTC
rendered paste body
Line given:
  y = m*x + y_0

Point given:
  (a,b)

Miscellany:
  n = -1/m (perpendicular slope)

Point reflected over line:
  (c,d)

Newfangled constant of death:
  Death = (y_0 - b + n*a)/(n - m)

Then,
  c = 2*Death - a
  d = 2(m*Death + y_0) - b