Пример #1
0
 /// <summary>
 /// Inverts this transformation in place.
 /// </summary>
 public void Invert()
 {
     Rotation.Invert();
     Translation = Rotation.Apply(-Translation);
 }
Пример #2
0
 /// <summary>
 /// Applies the given rotation to the axis of this rotation.
 /// </summary>
 /// <param name="rotation"></param>
 public void RotateAxis(ref OrthoBasis3d rotation)
 {
     _axis = rotation.Apply(_axis);
 }
Пример #3
0
 /// <summary>
 /// Inverts this transformation in place.
 /// </summary>
 public void Invert()
 {
     Scale = 1.0 / Scale;
     Rotation.Invert();
     Translation = Rotation.Apply(-Translation) * Scale;
 }
Пример #4
0
        /// <summary>
        /// Creates a relative rotation from r0 to r1.
        /// </summary>
        /// <param name="from"></param>
        /// <param name="to"></param>
        public static OrthoBasis3d CreateFromTo(ref OrthoBasis3d from, ref OrthoBasis3d to)
        {
            var inv = from.Inverse;

            return(to.Apply(ref inv));
        }