require 'rotgrp' class PointGroup < RotationGroup def rotation() return RotationGroup::new(@string.gsub(/\/m/){""}.gsub(/m/){"-2"}.gsub(/\-/){""}.sub(/232/){"432"}) end def gen_matrix() g=[] for e in generator() inv=1 inv=-1 if e=~/^\-/ g.push(inv*Element[e.sub(/\-/){""}]) end return g end end # class