/// <summary> /// Performs a deep copy of this <see cref="IGraphicsState"/>. /// </summary> /// <returns> /// It returns the equivalent of this <see cref="IGraphicsState"/>, but all objects referenced /// are not referred by both instances. /// </returns> public override IGraphicsState Copy() { TransformStateDouble copiedState = (TransformStateDouble)base.Copy(); if (_LocalProjection != null) { copiedState._LocalProjection = (ProjectionMatrixDouble)_LocalProjection.Clone(); } copiedState._LocalModel = new ModelMatrixDouble(_LocalModel); return(copiedState); }
/// <summary> /// Performs a deep copy of this <see cref="IGraphicsState"/>. /// </summary> /// <returns> /// It returns the equivalent of this <see cref="IGraphicsState"/>, but all objects referenced /// are not referred by both instances. /// </returns> public override IGraphicsState Copy() { TransformStateDouble copiedState = new TransformStateDouble(); // Do not use base.Copy()! return (copiedState); }
/// <summary> /// Performs a deep copy of this <see cref="IGraphicsState"/>. /// </summary> /// <returns> /// It returns the equivalent of this <see cref="IGraphicsState"/>, but all objects referenced /// are not referred by both instances. /// </returns> public override IGraphicsState Copy() { TransformStateDouble copiedState = new TransformStateDouble(); // Do not use base.Copy()! return(copiedState); }