SMS dit: Barycentric calculus in Euclidian and hyperbolic geometry