Derivation of the Mass Matrix for the McGill Schonflies Motion Generator