/// <summary> /// Copies the given Orientation3DWithPreviousOrientation object's data into this object's data. /// </summary> /// <param name="orientationToCopy">The Orientation3D object to copy from.</param> public void CopyFrom(Orientation3DWithPreviousOrientation orientationToCopy) { Orientation = orientationToCopy.Orientation; RotationalVelocity = orientationToCopy.RotationalVelocity; RotationalAcceleration = orientationToCopy.RotationalAcceleration; PreviousOrientation = orientationToCopy.PreviousOrientation; UpdatePreviousOrientationAutomatically = orientationToCopy.UpdatePreviousOrientationAutomatically; }
/// <summary> /// Copy Constructor. /// </summary> /// <param name="orienationToCopy">The Orientation3DWithPreviousOrientation object to copy.</param> public Orientation3DWithPreviousOrientation(Orientation3DWithPreviousOrientation orienationToCopy) { CopyFrom(orienationToCopy); }