Thats nice! The math behind it is the same of the "normal" way, but this way seems a bit more practical than the "normal" way.