public AffineTransform3 Invert()
        {
            AffineTransform3 result;

            result.Transform   = Transform.Invert();
            result.Translation = Translation.Transform(result.Transform);
            result.Translation = -result.Translation;
            return(result);
        }
Beispiel #2
0
        public void NonhomogeneousInvert()
        {
            Mat3 m3 = this;

            m3.Invert();
            this.x = m3.x;
            this.y = m3.y;
            this.z = m3.z;
            Vec3 v = m3.Transform(this.w);

            this.w.x = -v.x;
            this.w.y = -v.y;
            this.w.z = -v.z;
        }